Q. What is the output of the following code?

Code:
print(5 // 2)
  • (A) 2.5
  • (B) 2
  • (C) 3
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 2
Explanation: // performs floor division, discarding the decimal part. 5 // 2 = 2.
Explanation by: Ankit Singh
// performs floor division, discarding the decimal part. 5 // 2 = 2.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
54
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Ankit Singh
Publisher
πŸ“ˆ
81%
Success Rate