0

For loop

what is the use of for loop in python

25th Sep 2020, 4:39 AM
Anitha Saju
Anitha Saju - avatar
1 Answer
0
#Use 1: for doing a set of instructions a certain amount times #Use 2: for iterating through a list #examples: #use 1: for i in range(3): print("hello") #use 2: list = ["orange", "apple", "banana", "kiwi"] for i in list: print(i)
26th Oct 2023, 8:41 PM
Annihilate
Annihilate - avatar