Page 123 - ConceptGP_C8_Fb
P. 123
Operator Name
() Parenthesis
** Exponent
Multiplication, Division, Modulo, Floor
*, /, %, //
Division
+, – Addition, Subtraction
==, !=, >, <, >=, <= Comparison
=, +=, -=, *=, /=, %=, **=, Assignment
//=
and, or, not Logical
Sample Programs
Program 5: To subtract two numbers entered by the user.
Program 6: To calculate the average marks of three subjects.
Program 7: To calculate the volume and surface area of cylinder.
Introduction to Python Programming 121

