मराठी

How many times are the following loop executed? i = 4 while (i>=4): print i i+ = 10

Advertisements
Advertisements

प्रश्न

How many times are the following loop executed?

 i = 4
while (i>=4):
     print i
     i+ = 10
अति संक्षिप्त उत्तर
Advertisements

उत्तर

The value of i keeps increasing, so i >= 4 always remains true.

Infinite times (Infinite loop)

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1: Review of Phython - EXERCISE [पृष्ठ २५]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×