Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fizzbuzz(x: int) -> str: # Weird n Wacky
- return (str(x), "Fizz", "Buzz", "FizzBuzz")[int(x % 3 == 0) + int(x % 5 == 0) * 2]
- for n in range(1, 100):
- print(fizzbuzz(n))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement