Starlit Daily

📚 › Python: the friendliest first language

4. Numbers and operators

इस लेख का अनुवाद अपने आप होगा। अभी अंग्रेज़ी में दिखाया जा रहा है।

Python uses + - * / for arithmetic. // is floor division, giving a whole number. % gives the remainder. ** is the power operator, so 2 ** 3 is 8.

Use parentheses to choose the order of calculation.

उदाहरण देखें

print(7 // 2)
print(7 % 2)
print(2 ** 3)

✍️ अब आपकी बारी

Print 2 raised to the power of 10.

← कोर्स पर वापस