RollNo 17
RollNo 17
Post Graduate
College khanewal
Assignment
Computer Programming with Python
Topic:
Arithmetic Operators
Submitted By:
Muhammad Nasir
Roll Number:
17
Submitted To:
Mr.Saleem Anjum
Department:
BS Mathematics
Dated:
07-01-2025
Operators:
Operators are special symbols that represent computations like addition
and multiplication.
Operands:
The values the operator is applied to are called operands.
>>>#Arthimetic Operators
>>>a= 23.75
>>>b=99.100
>>>Sum=a+b
>>>print(Sum)
122.85
>>>Subtraction=a-b
>>>print(Subtraction)
-75.35
>>>Multiplication=a*b
>>>print(Multiplication)
2353.625
>>>Division=a/b
>>>print(Division)
0.23965691220988902
>>>Remainder=a%b
>>>print(Remainder)
23.75
>>>s=2
>>>u=3
>>>Power=s**u
>>>Print(Power)
8