मराठी

Find the errors from the given code. i=10 ; while [i<=n] : print i i+=1

Advertisements
Advertisements

प्रश्न

Find the errors from the given code.

i=10 ;
while [i<=n] :
    print i
   i+=1
अति संक्षिप्त उत्तर
Advertisements

उत्तर

Errors: Square brackets cannot be used around the while condition, and n must be assigned a value before use.

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

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×