A

Admin • 832.27K Points
Coach

Q. What is the output of the following Python code: print(2 * 3 + 5)?

  • (A) 11
  • (B) 16
  • (C) 5
  • (D) 10
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

In Python, the multiplication operator (*) has higher precedence than addition (+), so 2 * 3 = 6, and then 6 + 5 = 11.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.