Skip to content

Instantly share code, notes, and snippets.

@phalt
Last active August 2, 2016 11:12
Show Gist options
  • Save phalt/7446947 to your computer and use it in GitHub Desktop.
Save phalt/7446947 to your computer and use it in GitHub Desktop.
Script to sing happy birthday to someone
def happy_birthday(name):
for i in range(0,4):
if i == 2:
print('happy birthday dear {}'.format(name))
else:
print('happy birthday to you')
# example:
happy_birthday('Alex')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment