Re: [Tutor] Calendar

2011-09-12 Thread nitin chandra
I tried it in the following way, but beyond that i am not able to go. #!/usr/bin/env python import os, re, sys, calendar from datetime import datetime myCal = calendar.monthcalendar(2011,9) html += str(myCal) mycal = myCal[:1] cal1 = myCal[1:2] cal2 = myCal[2:3] cal3 = my

Re: [Tutor] Calendar

2011-09-12 Thread Sander Sweers
On 12/09/11 21:15, nitin chandra wrote: I need to create a calendar with python& CSS for the web page, in the following format Dec , 2011 - sun | mon | tue | wed th

Re: [Tutor] Calendar

2011-09-12 Thread spawgi
If you want to create a calendar for a webpage, I think you can use many ready made JS packages for this. May be jquery also has something. Is using Python mandatory for this task? And why? On Tue, Sep 13, 2011 at 12:45 AM, nitin chandra wrote: > Hi All, > > I need to create a calendar with pyth

Re: [Tutor] Calendar Module

2006-05-22 Thread Alan Gauld
use print! print calendart.calendar(2006) Alan G. - Original Message - From: "Shuai Jiang" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 23, 2006 2:09 AM Subject: [Tutor] Calendar Module Hello, I just got Python In a Nutshell and decided to play around with the time section. While play

Re: [Tutor] Calendar Module

2006-05-22 Thread John Fouhy
On 23/05/06, Shuai Jiang <[EMAIL PROTECTED]> wrote: > Hello, > I just got Python In a Nutshell and decided to play around with the time > section. While playing with the calendar module, I encountered a problem: > > >>> import calendar > >>> calendar.calendar (2006) > '

Re: [Tutor] Calendar question

2005-04-06 Thread John Carmona
Thanks Jacob, I think that should keep me out of the street for a while! I will get back to you if I have any question Regards JC ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Calendar question

2005-04-05 Thread Jacob S.
Also, I have been looking for some exercises to do using Python, obviously (and unfortunately) they need to be at a beginner level. Or better if anyone wants to send me one to do I would be very grateful I know a few exercises -- those that I have done. Some are beginner, some are difficult. Use

Re: [Tutor] Calendar question

2005-04-05 Thread John Carmona
Kristian you wrote: - 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). ---

Re: [Tutor] Calendar question

2005-04-05 Thread John Carmona
Thanks Kristian, it works a treat. Now you have set me up with finding out how to use the months entered by name. If I am stuck I will post again. Thanks very much JC ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Calendar question

2005-04-05 Thread Kristian Zoerhoff
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

Re: [Tutor] Calendar module

2005-03-30 Thread Kent Johnson
John Carmona wrote: Hi guys, I have typed this programme from the Josh Cogliati manual - import calendar year = input("Type in the year number: ") calendar.prcal(year) I get this error message Traceback (most recent call last): File "C:/P