Computer Science, asked by sameer1674, 2 months ago

Write down the syntax of for loop of Python​

Answers

Answered by Anonymous
2

Answer:

Python for Loop explained with examples

A loop is a used for iterating over a set of statements repeatedly. ...

Here <variable> is a variable that is used for iterating over a <sequence>. ...

range(n): generates a set of whole numbers starting from 0 to (n-1). ...

range(start, stop): generates a set of whole numbers starting from start to stop-1 .

Answered by bhavya240
3

Answer:

The for loop in Python is used to iterate over a sequence, which could be a list, tuple, array, or string. The program operates as follows: We have assigned a variable, x, which is going to be a placeholder for every item in our iterable object

Similar questions