Arithmetic Operators in Python

🎓 Welcome back to Digital Academy, the Complete Python Development Tutorial for Beginners, which will help you Learn Python from A to Z! Let’s start with Arithmetic Operators in Python

🖥️ Types of Operators in Python – Arithmetic Operators in Python

Depending upon the type of operations you want to perform, there are 7 types of operators in Python: Arithmetic operators, Assignment operator, Comparison operators, Logical operators, Bitwise operators, Identity operators and Membership operators.

○ Arithmetic Operators in Python

Arithmetic operators are used to perform common mathematical operations in Python like: addition, subtraction and multiplication, but also division – among so many others.

Below are the Arithmetic Operators in Python with symbols, and their meaning. These are simple mathematical operators that you will use, while doing an arithmetic operation in Python.

Operator | Meaning | Example
+ | Add two operands | x + y
– | Subtract right operand from the left | x – y
* | Multiply two operands | x * y
/ | Divide left operand by the right one | x / y
% | Modulus – Remainder of the division | x % y
// | Floor division | x // y
** | Exponent – Left operand raised to the power of right | x**y

Examples with x = 15, y = 4

○ Addition: x + y = 19
○ Subtraction: x – y = 11
○ Multiplication: x * y = 60
○ Division: x / y = 3.75

Apart from these 4 basic Arithmetic Operators in Python, you also have exponential operator, modulus operator and floor division operators:

○ Exponential: x ** y = 5062
○ Modulus: x % y = 3
○ Floor division: x // y = 3

Note: The result of standard division (/) is always a float, even if the dividend is evenly divisible by the divisor. Whereas the fractional portion of the floor division (//) is truncated off, leaving only the integer portion.

Let’s play this video, stick around and watch until the end of this video! 👍🏻

– Digital Academy™ 🎓

***

☞ WATCH NEXT:
○ Data Types in Python – https://youtu.be/cweUByxBWiU
○ Operators in Python – https://youtu.be/-wDaVLkKOiU
○ IF Statements in Python – https://youtu.be/CC5seZ6OBJ4
○ FOR Loops in Python – https://youtu.be/JgH-D5DSTho

☞ WATCH MORE:
○ HOW TO Learn Python? Python Tutorial for Beginners [FULL Course] https://youtu.be/9hvnSZPMtuw

📖 Blog: http://digital.academy.free.fr/blog/

📖 Complete Python Development Course for Beginners [PLAYLIST]: http://digital.academy.free.fr/playlist/python-development-for-beginners

#Python #Tutorial #Beginners #Shorts

***

♡ Thanks for watching and supporting ♡
Please Subscribe. Hit the notification bell.
Like, Comment and Share.

***

♡ FOLLOW US ♡
http://digital.academy.free.fr/
https://twitter.com/DigitalAcademyy
https://www.facebook.com/digitalacademyfr
https://www.instagram.com/digital_academy_fr/
https://www.youtube.com/c/DigitalAcademyOnline

♡ SUPPORT US ♡
http://digital.academy.free.fr/join
http://digital.academy.free.fr/donate
http://digital.academy.free.fr/subscribe
https://www.patreon.com/digital_academy
https://www.buymeacoffee.com/digital_academy

***

Copy link
Powered by Social Snap