A

Admin • 832.27K Points
Coach

Q. What is the output of this code snippet?

Code:
print(10 / 3)
  • (A) 3
  • (B) 3.3333333333333335
  • (C) 3.0
  • (D) Error
  • Correct Answer - Option(B)
  • Views: 19
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Division with `/` returns a float in Python 3.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.