Write the Python expressions for the following statements: 2 (i) Add the remainder of 8/3 to the product of 8 and 3
Answers
Answered by
41
Answer:
x=8%3
print(x+(8*3))
Hope you find this helpful! Please mark as brainliest!
Answered by
1
The Python expression for the following statement is 8%3+8*3.
Given,
Python programming language.
Python statement "Add the remainder of 8/3 to the product of 8 and 3."
To Find,
Python expression for "Add the remainder of 8/3 to the product of 8 and 3."
Solution,
Python expression can be written as;
For remainder of 8/3 ⇒ % (Modulus/Remainder) operator is used.
For product of 8 and 3 ⇒ * (Multiplication) operator is used.
For addition ⇒ + (Plus) operator is used.
∴ Expression formed is 8%3+8*3.
Hence, the Python expression for the following statement is 8%3+8*3.
#SPJ3
Similar questions