Intro To Python 3: Arithmetic Operators

preview_player
Показать описание
Python3 :-
Welcome to our Channel
Today we will be talking About

Arithmetic Operators in python3

python by default has Arithmetic Operators. they are...

+ is for Addition.
= is for. Equality or Assigns values from right side operands to left side operand
- is for Subtraction.
* is for Multiplication.
/ is for Division.
** is for Exponent or the power of.

lets put them in a Code to see how they ware written
___________________________________________________________

num1 = 4 #our 1st variable is named num1 with the value of 4
num2 = 5 #our 2nd variable is named num2 with the value of 5
# + is for Addition.
Total = num1 + num2 #Total = 4 + 5
print(Total)
# - is for Subtraction.
Total = num1 - num2 #Total = 4 - 5
print(Total)
# * is for Multiplication.
Total = num1 * num2 #Total = 4 * 5
print(Total)
# / is for Division.
Total = num1 / num2 #Total = 4 / 5
print(Total)
# ** is for Exponent or the power of.
Total = num1 ** num2 #Total = 4 ** 5
print(Total)

# Now lets run the code and see the results I'll be using this site bellow:-
__________________________________________________________.
I hope you liked our Video
Please subscribe, we appreciate your support.
Thank you for watching... :)
please comment if you have any questions...
Рекомендации по теме
welcome to shbcf.ru