Output of the python expression 24//6°\°3,24//4//2
Answers
Answered by
1
Answer:
24//6°\°3,24 =1
24//4//2 = 3
Explanation:
Answered by
1
Answer:
OUTPUT OF THE 24//6%3 STATEMENT = 1
OUTPUT OF THE 24//4//2 STATEMENT = 3
Explanation:
Operators
Operators are the symbols that are used in programming for performing mathematical and logical operations.
For example:
/ ⇒ Division operator
% ⇒ Modular operator
//⇒ integer division operator
* ⇒ Multiplication operator
+ ⇒ Addition operator
- ⇒ Subtraction operator
The first statement is 24//6%3
- 24//6 = 4 (Since 4 times of 6 is 24)
- Then 4%3 = 1 (When 4 is divided by 3, the remainder is 1)
Output is 1
The second statement is 24//4//2
- 24//4 = 6 (6 times of 4 is 24)
- 6//2 = 3 (3 times of 2 is 6)
So the output is 3.
#SPJ3
Similar questions