What will be the output after the following statement ? X = 8, y = 2 print (x // y).
Answers
Answered by
0
Answer:
4
Explanation:
Answered by
0
Answer is "4".
If we give input X=8, Y=2 then we got output for Z=X//Y is " 4 ".
About floor division operator :
- Python's floor division procedure divides two numbers and rounds the output to the nearest integer. The double-backslash (//) operator is used to divide the floor.
- "//" is the real floor division operator. For both integer and floating point parameters, it returns the floor value.
- Python's floor division procedure divides two numbers and rounds the output to the nearest integer. The double-backslash (//) operator is used to divide the floor.
Similar questions