Skip to content

Instantly share code, notes, and snippets.

@bharathmuddada
Created October 31, 2021 04:53
Show Gist options
  • Save bharathmuddada/6822e3abd1ccd54471f18e72c5f9dcf7 to your computer and use it in GitHub Desktop.
Save bharathmuddada/6822e3abd1ccd54471f18e72c5f9dcf7 to your computer and use it in GitHub Desktop.
FizzBuzz in python
number = int(input("enter your number "))
if (number%3 ==0 and number%5 ==0):
print("FizzBuzz")
elif(number%3 ==0):
print("Buzz")
elif(number%5 ==0):
print("Fizz")
else:
print(number)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment