Created
November 3, 2021 09:54
-
-
Save AggamR/c48ec588879e1bb0c1259b9037afa99a to your computer and use it in GitHub Desktop.
fizzbuzz1.py
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
# This is fizzbuzz in one line | |
# I was bored in python class, enjoy | |
for x in [ list(['FizzBuzz'] + [i]*2 + ['Fizz', i] + ['Buzz', 'Fizz'] + [i]*2 + ['Fizz'] + [i]*2 + ['Fizz'] + [i]*2)[i % 15] for i in range(0, 500) ]: print(x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment