[Python-Help] Programming help

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Mon Dec 6 15:19:46 EST 2004



On Mon, 6 Dec 2004, Alfred Canoy wrote:

> Please help me out:(.. I've been trying to figure this out for 2 days
> now.. I don't know what to use to print all the list of numbers. I hve
> know idea how should I do this. I tried a lot of trial & error for the
> the def, dict, .list( ). have no luck.


Hi Alfred.

When you are reading numbers from the user, you should be careful to store
those numbers somewhere.  That is, you need to "collect" each new number
in some kind of container.


Take a look at:

    http://www.freenetpages.co.uk/hp/alan.gauld/tutdata.htm

The "Collections" section of that page has tutorial material on how to
collect a bunch of numbers in a single container.


Good luck to you!




More information about the Python-list mailing list