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.