मराठी

Rewrite the following while loop into for loop. i=88 while(i>=8): print i i- = 8

Advertisements
Advertisements

प्रश्न

Rewrite the following while loop into for loop.

i=88
while(i>=8):
     print i
     i- = 8
कोड लेखन
Advertisements

उत्तर

for i in range(88, 7, -8):
    print(i)
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1: Review of Phython - EXERCISE [पृष्ठ २५]

APPEARS IN

सीबीएसई Computer Science with Python [English] Class 12
पाठ 1 Review of Phython
EXERCISE | Q 6. b) | पृष्ठ २५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×