DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
FizzBuzz in Python Using Lambda
print(*map(lambda i: 'Fizz'*(not i%3)+'Buzz'*(not i%5) or i, range(1,101)),sep=' ')
Source by softhunt.net #
PREVIOUS
NEXT
Tagged:
#FizzBuzz
#Python
#Using
#Lambda
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit