for loop in python 2022-09-28 # input in loop for l in range(5): name = input("enter your name : ") print (name) #koop in range start and end and increment or decrement for d in range(1,11,2): print(d) #koop in range start and end for s in range(1,11): #print(s) # for loop in range end for a in range(6): print(a) #for loop in list cities = ["amman ","irbid","zarqa","mafraq"] for x in cities : print (x) # for loop in strings for x in "cities" : print (x) Twitter WhatsApp Telegram Facebook