Please guys I need help with the fizz buzz python project | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Please guys I need help with the fizz buzz python project

I have put in the if statement and the continue statement but It seems like I am not getting something right. Pls help me out Here is the code n = int(input()) for x in range(1, n): 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) for x in range(1, n): if x%2==0: print("skipping") continue

6th Jan 2023, 2:42 PM
Udoka Chigbata
Udoka Chigbata - avatar
2 Answers
+ 2
Udoka Chigbata here my code n = int(input()) for x in range(1, n): if x% 2==0: continue 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)
6th Jan 2023, 2:52 PM
Henry
0
Thanks Henry. I really appreciate
6th Jan 2023, 2:55 PM
Udoka Chigbata
Udoka Chigbata - avatar