Q. Write Python expressions to represent the following situations:
(a) Add remainder of 8/3 to the product of 8 and 3.
(b) Find the square root of the sum of 8 and 43.
(c) Find the sum of the square roots of 8 and 43.
(d) Find the integral part of the quotient when 100 is divided by 32.
Answer :-
(a) 8 % 3 + 8 *3
(b) (8 + 43 )**(1/2)
(c) 8**(1/2) + 43 **(1/2)
(d) 100 // 32
i think first one will be 8%3 instead of 8//3
ReplyDeletealthough the answer will be same but for remainder % this is used, you can check it with other numbers
DeleteSorry, I have corrected it.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )