Lesson 5 of 6
கணக்குகள்: OperatorsMaths with Operators
7 min 20 XP
Python ஒரு சக்திவாய்ந்த calculator. / என்பது தசம வகுத்தல், // என்பது முழு எண் வகுத்தல், % என்பது மீதி (remainder), ** என்பது அடுக்கு (power).
Python is a powerful calculator. / is decimal division, // is whole-number division, % is the remainder, and ** is power.
Example: edit me and press Run
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.கணிதத்தில் போலவே, * மற்றும் / முதலில் கணக்கிடப்படும், பிறகு + மற்றும் -. அடைப்புக்குறி ( ) முதலில் செய்ய வைக்கும்.
Just like in maths, * and / are calculated before + and -. Brackets ( ) are calculated first.
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 என்றால் இரட்டைப்படை.
To check if a number is even: if n % 2 is 0, it's even.