मराठी

Find the errors from the given code. for i in 1 to 100 : printI

Advertisements
Advertisements

प्रश्न

Find the errors from the given code.

for i in 1 to 100 :
     printI
अति संक्षिप्त उत्तर
Advertisements

उत्तर

Errors: Python does not use 1 to 100; use range(). Also use the same variable name i, and Python 3 print().

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

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×