A

Admin • 802.91K Points
Coach

Q. How do you write an infinite loop in Python?

  • (A) while True:
  • (B) for True:
  • (C) loop forever:
  • (D) repeat:
  • Correct Answer - Option(A)
  • Views: 2
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
`while True:` creates an infinite loop.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.