The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #60
for i in range(0,10):
print("I love Python!")
10 times! The syntax of the range function is range(start, stop, step) . In that case range() will start at (before) 0 and stop at (before) 10: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. 10 times! (w3schools.com/python/ref_func_range.asp)
How many times is "I love Python" going to be printed?
— The Python Quiz (@thepythonquiz) September 24, 2020
for i in range(0,10):
print("I love Python!")
10 times
9 times
11 times#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: