πŸ“Š Python
Q. What is the output of this code?
Code:
x = 5
y = 2
print(x // y)
  • (A) 2.5
  • (B) 2
  • (C) 2.0
  • (D) 3
πŸ’¬ Discuss
βœ… Correct Answer: (B) 2

Explanation: `//` is floor division, which returns the largest integer less than or equal to the result.

Explanation by: Mr. Dubey
`//` is floor division, which returns the largest integer less than or equal to the result.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
41
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate