Enumerate in python
myteam = ["Baber azam","Rehman","Fakher","Numanbutt"]
i = 0
for item in myteam:
if i%2 != 0:
print(f"please print {item}")
i = +1
# index is saved the number of the vales of the list....
for index,items in enumerate(myteam) :
if index % 2 == 0:
print(f"Please chose these {items}")
Comments
Post a Comment