8.6k views
2 votes
In Python iteration, a(/an) loop repeats the code block as long as the result of the conditional statement is true

User Guradio
by
5.0k points

1 Answer

2 votes

Yes But it depends on the range given

Lets take example of for loop

Sample program:-


\tt a=3


\tt for\:i\:in\:range(4)


\tt print(

Output:-


\tt 3


\tt 3


\tt 3


\tt 3

User CoryG
by
5.3k points