Created
September 5, 2020 18:22
-
-
Save JosiasAurel/4710139928a41fe70c58c042572b53a8 to your computer and use it in GitHub Desktop.
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
| numbers = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] | |
| for num in numbers: | |
| if num % 15 == 0: | |
| print("Fizz Buzz") | |
| elif num % 3 == 0: | |
| print("Fizz") | |
| elif num % 5 == 0: | |
| print("Buzz") | |
| else: | |
| print(num) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment