Computer Science, asked by kvishwanathan051, 5 hours ago

3. Write note on range() in loop?​

Answers

Answered by itzarmygirl21
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 indupandey146
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