def get_age(): """precondition: None postconditiion: Queries user for age and returns the result as an integer""" age = input("Welcome to dusty's pub. How old are you? ") return int(age) def monthName(n): """precondition: n is an integer, 1 <= n <= 12. postconditon: returns the month name, 1 is January, 2 is February, etc""" if n == 1: return "January" if n == 2: return "February" if n == 3: return "March" if n == 4: return "April" if n == 5: return "May" if n == 6: return "June" if n == 7: return "July" if n == 8: return "August" if n == 9: return "September" if n == 10: return "October" if n == 11: return "November" if n == 12: return "December" def monthName(n): """precondition: n is an integer, 1 <= n <= 12. postconditon: returns the month name, 1 is January, 2 is February, etc""" names = ["", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] return names[n] age = get_age() if age < 21: print("Git outta hieah, kid!") elif(age < 65): print("Name yer poizon, baw!") else: print("Shall I cash yer soshal, Geezer??")