Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

fizzbuzz python

# FizzBuzz in one line. Impress ur boss
for i in range(21): print((int(i) % 3 == 0)*'Fizz' + (int(i) % 5 == 0)*'Buzz' or i)
  
# Any string multiplied by False will return nothing.
#																 - sabz
 
PREVIOUS NEXT
Tagged: #fizzbuzz #python
ADD COMMENT
Topic
Name
5+6 =