On Apr 5, 2005 11:26 AM, John Carmona <[EMAIL PROTECTED]> wrote: > But how do you use the prmonth command, if you, for example, want to write > something asking you: > > to enter a year (this I know) > to enter a month of that year > and print just the month
>>> import calendar >>> year = int(raw_input("Year? ")) >>> month = int(raw_input("Month? ")) >>> calendar.prmonth(year, month) This assumes all input as integers; if you want months entered by name, you'll have to write a conversion routine (hint: use a dict). -- Kristian kristian.zoerhoff(AT)gmail.com zoerhoff(AT)freeshell.org _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor