Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to?

Status
Not open for further replies.

krimble

Programmer
Joined
Jul 19, 2006
Messages
2
Location
NL
Hello, i'm learning python, python is my first programming language.
Owkee here's the question: I need to make an agenda but i don't know where to start. (build a program that puts all the days in a dictionary, the keys are yyyy - mm - dd, the values is empty list for the appointments.
(I'm not allowed to use functions, or other fancy stuff. I'm just past for loops so I can use for loops).

I don't want a full script that is fully working, but I want to know how to start with the agenda script.

Thank you,

 
not allowed to use functions" ? Sounds suspiciously like homework to me!

Consider :
- do you need to store the data in a file?
- Can you create a for loop with a condition that ends depending on when the user wants?
- You need to search a date and write to a date, maybe even modify a particular appointment.

I don't want to say more.. If it is homework, you should have the tools needed at your disposal, though you may need to be a bit inventive with them.

"That time in Seattle... was a nightmare. I came out of it dead broke, without a house, without anything except a girlfriend and a knowledge of UNIX."
"Well, that's something," Avi says. "Normally those two are mutually exclusive."
-- Neal Stephenson, "Cryptonomicon"
 
thanks for the reply,

Well it's somekind of homework, I work as a modeler\animater in a virtual reality lab. And they have asked me to learn python. So they give me a map with information about python and some problems to solve, one of the problems is programming a agenda.

The exact problem is:
Create a program that puts all the days of 2007 in a dictionary, the keys are yyyy - mm - dd. The values is empty list to store the appointments in later.

Well the problem goes on and on: store at every saturday "day off", create a vacation period, etc etc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top