A

Admin • 833K Points
Coach

Q. Which of the following will result in a syntax error?

  • (A) print('hello')
  • (B) if True print('yes')
  • (C) x = 1
  • (D) for i in range(5): pass
  • Correct Answer - Option(B)
  • Views: 30
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Python requires a colon after `if` conditions.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.