Lesson 5 of 34

Operators দিয়ে অঙ্ক

7 min 20 XP

Python একটি শক্তিশালী ক্যালকুলেটর। / দশমিক ভাগ, // পূর্ণসংখ্যার ভাগ, % ভাগশেষ, আর ** হলো ঘাত (power)।

Example: edit me and press Run

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

অঙ্কের মতোই * আর / হিসাব হয় + আর --এর আগে। Brackets ( ) সবার আগে হিসাব হয়।

Example: edit me and press Run

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

সংখ্যাটি জোড় কিনা দেখতে: n % 2 যদি 0 হয়, তবে সেটি জোড়।

Challenge

+20 XP

length = 12 আর width = 5 এমন আয়তক্ষেত্রের ক্ষেত্রফল ও তারপর পরিসীমা আলাদা লাইনে print করুন।

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