Question: Which option would fix this for loop to print the numbers 1 2 , 1 8 , 2 4 , 3 0 , 3 6

Which option would fix this for loop to print the numbers 12,18,24,30,36?
12
for n in range(6,18,3):
print(n*2)
1 point
12
for n in range(6,18,3):
print(n+2)
12
for n in range(6,18+1,3):
print(n*2)
12
for n in range(12,36,6):
print(n*2)
12

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!