[Tutor] Generating Birthdays

Alan Gauld alan.gauld at btinternet.com
Wed Jun 2 01:25:58 CEST 2010


"Benjamin Leddige" <bmleddige at hotmail.com> wrote 

> I have to create a program that generates random birthdays 
> while using lists. 

This sounds like a homework assignment.
We don't do homework for you but if you tell us what you've tried
and where you are stuck we will try to make helpful suggestions.

> How do i go about doing this? Do i create two separate lists for 
> for the months and days or how can i go about writing this?

First can you explain more about what you want to do. 
Getting the problem clear in your head (and ours) is the first step.

What exactly is a "random birthday"? 
What makes it different to a random date?

And do you know how to generate randomness in your programs?

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/




More information about the Tutor mailing list