We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
My answer is coming the same as it should be, but it still says Wrong Answer. Here is my code:-> for x in range(1,101): if x%3 == 0: print("Fizz") if x%5 == 0: print("Buzz") elif x%5 == 0: print("Buzz") else: print(x) ###Please let me know asap what is the problem?????
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
FizzBuzz
You are viewing a single comment's thread. Return to all comments →
My answer is coming the same as it should be, but it still says Wrong Answer. Here is my code:-> for x in range(1,101): if x%3 == 0: print("Fizz") if x%5 == 0: print("Buzz") elif x%5 == 0: print("Buzz") else: print(x) ###Please let me know asap what is the problem?????