Computer Science, asked by sameer1674, 1 month ago

Write down the syntax of for loop of Python​

Answers

Answered by adityakumar30508
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