Created
June 29, 2018 04:12
-
-
Save ryu1-1uyr/7a17a896c4c51e28dd875ddcfee48c93 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
N = int(input()) | |
for o in [(i%3==0)*'Fizz' + (i%5==0)*'Buzz' or i for i in range(1, N+1)]: | |
print (o) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
そこまできたらList内包もう一個かぶせろ