Python #03 | First python program | using as calculator
PYTHON #3
First python program | using as calculator
As in other languages like C, C++, java we do calculations similarly we can do calculations in python by the operators in maths
Like + ,- ,/ ,*, **
- + adds
- - subtracts
- * multiplies
- / divides returns value in floating value
- // divides and leave remeander
- ** exponent
- = equals or not return value in True or False
- != not equals use in loops or conditionals
- <,>,= use in comparison
For calculations we simply do:
a=34
b=6
a)c=a+b
print(c)
_____________________
OUTPUT
40
b) print(a+b)
_____________________
OUTPUT
40
By Onik Dhall
Owner of Coding Only
Mail Id-
coding.only1@gmail.com
Channel-
Comments
Post a Comment