Write down the syntax of for loop of Python
Answers
Answered by
1
Answer:
Loops in python
while loops
i = 1
while i < 6:
print(i)
i += 1
For loops
fruits = ["apple", "banana", "cherry"]
for x in fruits:
print(x)
Explanation:
hope this help you
Similar questions