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-ലെ അടുത്ത വരി വായിക്കുന്നു.