0

FizzBuzz in Python Free Version how to unlock test case 2?

I don’t have Pro SoloLearn and am working on the Python FizzBuzz End of Mod project. Got the first test case solved but the second test case is locked. How do I unlock the second test case? https://code.sololearn.com/cF7Q4bWfHQlS/?ref=app

13th Feb 2021, 2:42 AM
DigiDragon
DigiDragon - avatar
6 odpowiedzi
+ 7
I missed to notice that we need to change the code to skip the even numbers So, you have to use 2 as a step in the range. for x in range(1, n,2):
13th Feb 2021, 3:21 AM
Simba
Simba - avatar
+ 2
i got it solved. I dont know what i would do without this discussion board. thanks everyone for the help!
13th Feb 2021, 4:05 AM
DigiDragon
DigiDragon - avatar
0
i tried removing my 2nd and 3rd if statements reverts the code back to original. the 2nd and 3rd if statements make the code acceptable to test case 1.
13th Feb 2021, 3:16 AM
DigiDragon
DigiDragon - avatar
0
my problem is what does it want for test case 2? when I cant see the code in order to solve it?
13th Feb 2021, 3:19 AM
DigiDragon
DigiDragon - avatar