Last active
August 29, 2015 14:02
-
-
Save urschrei/144728db9182abcfcf8c to your computer and use it in GitHub Desktop.
Generate Factorial Emoji Bees
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf8 -*- | |
def countdown(counter, s): | |
""" | |
Print factorial numbers of emoji beasts | |
Inspired by @direlog | |
""" | |
if counter < 1: | |
return | |
else: | |
print(s * counter) | |
return countdown(counter - 1, s) | |
countdown(100, u'🐝') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment