Skip to content

Instantly share code, notes, and snippets.

@uganikov
Created June 22, 2019 15:26
Show Gist options
  • Save uganikov/3eddfde96bef37349d918e7df74b10d2 to your computer and use it in GitHub Desktop.
Save uganikov/3eddfde96bef37349d918e7df74b10d2 to your computer and use it in GitHub Desktop.
課題1-1
#!/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