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 है, तो वह सम है।