+ 1
Fizz buzz project from python
n = int(input()) for x in range(1, n+1, 2): if x % 3 == 0 and x % 5 == 0: print("") elif x % 3 == 0: print("Solo") elif x % 5 == 0: print("Learn") else: print(x) The output is correct but I don't know what is the problem plz help me
8 Respuestas
+ 3
n = int(input())
for x in range(1, n , 2):
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)
Just add "2" in the range.
0
It's right 👍
0
is this solved, or you still need help?
0
I think there was a glitch I tried first I was showing I am wrong
then I tried again I was write
0
so u still need help?
0
No I solved it thanks
0
oh okay good for you