The FizzBuzz problem in Python Core.
I'll just copy paste the question below so there's no need to tell what is happening. FizzBuzz is a well known programming assignment, asked during interviews. The given code solves the FizzBuzz problem and uses the words "Solo" and "Learn" instead of "Fizz" and "Buzz". It takes an input n and outputs the numbers from 1 to n. For each multiple of 3, print "Solo" instead of the number. For each multiple of 5, prints "Learn" instead of the number. For numbers which are multiples of both 3 and 5, output "SoloLearn". You need to change the code to skip the even numbers, so that the logic only applies to odd numbers in the range. So, on using the 3, 5 and 15, test case 1 was wrong as there were no signs of multiple of 2. Added the 2 and the test case passed but the second case is still not working. I'll be pasting the code below so can you guys help me? n = int(input()) for i in range(1, n): if i % 2 == 0: continue elif i % 3 == 0: print("Solo") continue elif i % 5 == 0: print('Learn') continue elif i % 15 == 0: print("SoloLearn") continue else: print(i)