English

Rewrite the following for loop into while loop. for a in range(25,500,25): print a

Advertisements
Advertisements

Question

Rewrite the following for loop into while loop.

for a in range(25,500,25):
    print a
Code Writing
Advertisements

Solution

a = 25
while a < 500:
    print(a)
    a += 25
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 5. a) | Page 25
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×