Created
June 22, 2019 15:26
-
-
Save uganikov/3eddfde96bef37349d918e7df74b10d2 to your computer and use it in GitHub Desktop.
課題1-1
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
#!/usr/bin/python3 | |
def fb(i): | |
fba = ["", "Fizz", "Buzz"] | |
return fba[not (i % 3)] + fba[(not (i % 5)) * 2] | |
i = 1 | |
while i <= 200: | |
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