Skip to content

Instantly share code, notes, and snippets.

@nicoledan
Created March 18, 2017 03:49
Show Gist options
  • Save nicoledan/753f727600a47a0395f810eb4bc2ea98 to your computer and use it in GitHub Desktop.
Save nicoledan/753f727600a47a0395f810eb4bc2ea98 to your computer and use it in GitHub Desktop.
from sys import argv
prompt = '>'
months = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december']
print "Type the number of a month"
number = raw_input(prompt)
number=int(number)
month = months[number + 1]
print "%s" % month
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment