Skip to main content
-1 byte using better unpacking
Source Link
Surculose Sputum
  • 8.4k
  • 1
  • 13
  • 40

Python 3, 7777 76 bytes

t="Python","fizz","buzz","'ave a banana"
[*map*map(print,t[t.index(input())+1:])],

Try it online!Try it online!

Takes input from STDIN, and print the results to STDOUT.

Python 3, 77 bytes

t="Python","fizz","buzz","'ave a banana"
[*map(print,t[t.index(input())+1:])]

Try it online!

Takes input from STDIN, and print the results to STDOUT.

Python 3, 77 76 bytes

t="Python","fizz","buzz","'ave a banana"
*map(print,t[t.index(input())+1:]),

Try it online!

Takes input from STDIN, and print the results to STDOUT.

Source Link
Surculose Sputum
  • 8.4k
  • 1
  • 13
  • 40

Python 3, 77 bytes

t="Python","fizz","buzz","'ave a banana"
[*map(print,t[t.index(input())+1:])]

Try it online!

Takes input from STDIN, and print the results to STDOUT.