Quiz Python 5. Loops

Don't have a Resume?




Question :

Which of the following loops prints "Welcome to Python" 10 times?

A:
for count in range(1, 10):
    print("Welcome to Python")

B:
for count in range(0, 10):
    print("Welcome to Python")

C:
for count in range(1, 11):
  print("Welcome to Python")

D:
for count in range(1, 12):
  print("Welcome to Python")

  1. BD
  2. ABC
  3. AC
  4. BC
Answer : Option 4