0

Can somebody tell how to add numbers in Python

I donot know how to perform basic math operation in Python please tell me

25th Jun 2020, 9:34 AM
Alexinon
3 ответов
+ 2
2 + 2 or print(2 + 2)
25th Jun 2020, 9:39 AM
Slick
Slick - avatar
+ 3
Just start your python course and you will get to know about that. But If you want answer,Let me tell you. To perform basic math operations just write there print(2+2). This will add them. Similarly, "-" is used for subtraction "*" is used for multiplication "//" is used for getting the quotient "%" is used for getting remainder and "**" is used for exponentiation. If you want to print them, just replace "+" with these operators
25th Jun 2020, 11:45 AM
Arctic Fox
Arctic Fox - avatar
+ 2
Thanks bhai for support and help
25th Jun 2020, 9:43 AM
Alexinon