Question: I am trying to use a For loop to move by 2 and skip multiples of 3. Could someone explain to me what i am

I am trying to use a For loop to move by 2 and skip multiples of 3.
Could someone explain to me what i am doing wrong and could they show me the correct way to do this using Python 3.
Thanks!
= Enter 3 Enter 19 Press enter for move by 2 skip multiples of three 17 1 minNumber int(input("Enter")) 2 maxNumber int(input("Enter ")) 3- def moveByTwoSkip3(minNumber, maxNumber): 4 global int 5- for i in range(minNumber,maxNumber, 2): 6- if i % 3 != 0 : 7 continue 8 - else: 9 print(i) 10 11 - def main(): 12 print(" Press enter for move by 2 skip multiples of three ") 13 moveByTwoSkip3(minNumber, maxNumber) 14 15 if name _main__': 16 main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
