English

How many times are the following loop executed? for b in (1,10): print b

Advertisements
Advertisements

Question

How many times are the following loop executed?

for b in (1,10):
     print b
Very Short Answer
Advertisements

Solution

Values: 1, 10

2 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. c) | Page 25
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×