# # def main(): print "This program asks the user to input the number of a month, and returns the months name." months='January February March April May June July August SeptemberOctober November December ' n=input("Please, input the number of a month:") if n>0 and n<13: print months[(n-1)*9:((n-1)*9+9)] #[(n-1)*9:n*9] else : print "The months number should be between 1 and 12." main()