python loops and assignment

technical talkiess
0

 list_data = ["asd","visalasd","kaka","data"]


list_data1 = [["asd",1],["visalasd",2],["kaka",3],["data",3]]
# for x in list_data:
#     print(x)

# assign in the dictionary

# dict_data = dict(list_data1)

# for y,x in dict_data.items():
#     print(y,x)

# assigned ment

list_assign = [1,"vishal",3,"asdasd",4,5,6,"asdasd",7,8,9]

for items in list_assign:
    if str(items).isnumeric() and items > 6:
        print(items)
Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)