Skip to content

Commit 1fd755f

Browse files
committed
one line python solution
1 parent 9d80b6b commit 1fd755f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/one-line-solution.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Python 1 line code for FizzBuzz
2+
# Author: @mohammed-ijas
3+
print(*map(lambda v: 'Fizz'*(not v%3)+'Buzz'*(not v%5) or v, range(1,101)),sep=' ')

0 commit comments

Comments
 (0)