Created
July 4, 2020 01:05
-
-
Save yasuda0320/3bd89f383cb687a5336418914448dec4 to your computer and use it in GitHub Desktop.
This file contains 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 fb(n): | |
return f'{"Fizz" if (n % 3 == 0) else ("")}{"Buzz" if (n % 5 == 0) else ("")}' | |
i = 1 | |
while i <= 20: | |
print(i, fb(i)) | |
i = i + 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment