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
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
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
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
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)
> '
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
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
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).
---
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
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
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
11 matches
Mail list logo