Lesson 4 of 34

input(): वापरकर्त्याला विचारणे

8 min 20 XP

वापरकर्ता जे टाइप करतो ते input() वाचतो. इथे Run दाबण्यापूर्वी Input box मध्ये मूल्ये टाइप करा, प्रत्येक ओळीत एक.

Example: edit me and press Run

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

input() नेहमी string देतो. संख्या म्हणून वापरायची असल्यास int(input()) लिहा.

Example: edit me and press Run

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

प्रत्येक input() Input box ची पुढची ओळ वाचतो.

Challenge

+20 XP

input() ने दोन संख्या वाचा आणि त्यांची बेरीज print करा. Input box मध्ये 5 आणि 7 आहेत, म्हणून उत्तर 12 यायला हवे.

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.