A

Admin • 831.35K Points
Coach

Q. Which keyword is used to create an infinite loop in Python?

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

Explanation by: Admin
In Python, 'while True:' creates an infinite loop until a break statement is used.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.