For loops can be used for iterating(looping) over a sequence. A sequence can be(list, tuple, dictionary, set and, string).
Python program to print name of fruits in list using for loop
fruits = ["apple", "banana", "cherry"]
for x in fruits:
#output- apple, banana, cherry
x= 1 while(x==1): print('python says Hello!!!’) Press Ctrl + C to exit infinite loop')