- 1

Why my fizzbuzz cod didnt pass?

I write code in python and it didnt pass the quiz Can anyone help 😢 n = int(input()) for x in range(1, n+1): if x % 3 == 0 and x % 5 == 0: print("SoloLearn") elif x % 3 == 0: print("Solo") elif x % 5 == 0: print("Learn") else: print(x)

4th Jul 2021, 11:22 AM
Ahmed Mohamed Yonis
Ahmed Mohamed Yonis - avatar
2 odpowiedzi
+ 4
All Correct, but According to question, it must skip the even values or skip those numbers divisible by 2. HINT - use continue
4th Jul 2021, 11:32 AM
Abhiyantā
Abhiyantā - avatar
0
Can you send the link to the code ?
4th Jul 2021, 11:32 AM
Saphal Poudyal
Saphal Poudyal - avatar