
# 3.1.1 list
# 1.
datalist = [1452, 11.23, 1+ 2j, True, 'w3source', (0, -1), [5, 12],
            {"class": 'v', "section": 'a'}]
for i in datalist:
    print(i, ":", type(i))

# 3.1.2 Numberlist
# 2a
lst = [1, -1, 2, 0, 5, 8, -13, 21, -34, 55, 87, 0]


def haib(list):
    for i in list:
        if i < 5:
            print(i)


haib(lst)

lst = [1, -1, 2, 0, 5, 8, -13, 21, -34, 55, 87, 0]
list_moi = []


def haic(list):
    for i in list:
        if i < 5:
            list_moi.append(i)
    print(list_moi)


haic(lst)


a = [2, 3 ,4]
b = 1
c = 1.5

list

68
