English

Write a note on the range () in the loop?

Advertisements
Advertisements

Question

Write a note on the range () in the loop?

Short/Brief Note
Advertisements

Solution

Usually in Python, for loop uses the range() function in the sequence to specify the initial, final, and increment values. range() generates a list of values starting from start till stop – 1.

shaalaa.com
Control Structure
  Is there an error in this question or solution?
Chapter 6: Control Structures - Evaluation [Page 88]
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×