3. Write note on range() in loop?
Answers
Answered by
3
Answer:
Use for loop with the range() function. The start argument is the starting number. The stop argument is the last number (which is not included). The step argument is optional and defines the difference between each number in the sequence.
Answered by
0
Explanation:
The start argument is the starting number. The stop argument is the last number (which is not included). The step argument is optional and defines the difference between each number in the sequence.The range() function in Python is often used in for statements to define the number of loop iterations. This built-in function creates lists containing arithmetic progressions. The syntax of the range() function is
Similar questions