+ 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
2 ответов
+ 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)
0
Thanks Henry. I really appreciate