+ 1

Where is the wrong in FuzzBuzz 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)

26th Jul 2021, 7:47 AM
RonanZoro
RonanZoro - avatar
1 Answer
+ 3
You're not skipping the even numbers.. Once Check the code below 👇 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)
26th Jul 2021, 8:02 AM
sarada lakshmi
sarada lakshmi - avatar