0

What is wrong in this code I am stuck

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)

1st Jan 2021, 2:07 PM
Coder Ayush
Coder Ayush - avatar
3 Réponses
+ 6
Coder Ayush print" SoloLearn "and not "Sololearn". [Note: Check lower case and uppercase characters ]
1st Jan 2021, 2:16 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
There is no problem in this code. What problem are you facing?
1st Jan 2021, 2:12 PM
XXX
XXX - avatar
0
In test case two its showing this wrong python 3 fizzbuzz
1st Jan 2021, 2:14 PM
Coder Ayush
Coder Ayush - avatar