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.