Created
November 8, 2019 18:33
-
-
Save LittleHaku/43409c53a52b8293ccb22ec9f2fc3336 to your computer and use it in GitHub Desktop.
FizzBuzz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def fizz_buzz(n): | |
| if n % 5 == 0 and n % 3 == 0: | |
| print("Fizz Buzz") | |
| elif n % 3 == 0: | |
| print("Fizz") | |
| elif n % 5 == 0: | |
| print("Buzz") | |
| else: | |
| print(n) | |
| fizz_buzz(15) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment