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.