English

Give an example of a loop that is to be executed a certain number of times. - Computer Science (Python)

Advertisements
Advertisements

Question

Give an example of a loop that is to be executed a certain number of times.

One Line Answer

Solution

For i in range (10, 26, 5)

It will execute only 3 times.

shaalaa.com
Introduction to Flow of Control - Repetition
  Is there an error in this question or solution?
Chapter 4: Introduction to Problem Solving - Exercise [Page 83]

APPEARS IN

NCERT Computer Science [English] Class 11
Chapter 4 Introduction to Problem Solving
Exercise | Q 4. | Page 83
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×