+ 1
How do I implement “continue” to skip the even numbers in the output..Please🙏
n = int(input()) for x in range(1, n): if x % 3 == 0 and x % 5 == 0: print("FreezeBreath") elif x % 3 == 0: print("Freeze") elif x == 6: continue elif x % 5 == 0: print("Breath") else: print(x)
2 Respostas
+ 2
Just add this condition
elif x % 2 == 0 :
continue
+ 3
ALXANDER🦅⚡️ ,
see my comments in the attached file:
https://code.sololearn.com/cLdtHuYX2mCm/?ref=app