Created
March 18, 2017 03:49
-
-
Save nicoledan/753f727600a47a0395f810eb4bc2ea98 to your computer and use it in GitHub Desktop.
This file contains 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
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