loops - day1 -22/05/25
star
star
star
star
star
Last updated 7 months ago
4 questions
1
What will the following code output? for i in range(3): print(i)
What will the following code output? for i in range(3): print(i)
1
How many times will 'Python' print? for i in range(5): print('Python')
How many times will 'Python' print? for i in range(5): print('Python')
1
What output results from this loop? for i in range(2,5): print(i)
What output results from this loop? for i in range(2,5): print(i)
1
What does this code print? for i in range(1,4): print(i*2)
What does this code print? for i in range(1,4): print(i*2)