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

Explanation: This type of division is called a “truncated division” where the remainder is truncated or removed.

Explanation by: Tanmay
This type of division is called a “truncated division” where the remainder is truncated or removed.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
189
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
94%
Success Rate