English

How many times are the following loop executed? for a in range(100,10,-10): print a

Advertisements
Advertisements

Question

How many times are the following loop executed?

for a in range(100,10,-10):
     print a
Very Short Answer
Advertisements

Solution

Values: 100, 90, 80, 70, 60, 50, 40, 30, 20

9 times

shaalaa.com
  Is there an error in this question or solution?
Chapter 1: Review of Phython - EXERCISE [Page 25]

APPEARS IN

CBSE Computer Science with Python [English] Class 12
Chapter 1 Review of Phython
EXERCISE | Q 4. a) | Page 25
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×