Computer Science Classwork Modulus Manzoor
Q1 . The true value return by relational expression is represented by: 1
Q2 . An expression many consist of: Both Operand and Operators
Python Programming Question:
Q3. Write a program that takes two numbers and performs modulus operation.
In Python, the modulus operator
is a percent sign ( % ). The syntax is the
same as for other operators. In the above example,
7 divided by 3 is 2 when we use integer
division and there is a remainder of 1 when we use the
modulus operator.
In Python, the modulus operator
is a percent sign ( % ). The syntax is the
same as for other operators. In the above example,
7 divided by 3 is 2 when we use integer
division and there is a remainder of 1 when we use the
modulus operator.
Comments
Post a Comment