Iteration for Factorials
Marco Mariani
marco at sferacarta.com
Mon Oct 22 08:43:01 EDT 2007
More information about the Python-list mailing list
Mon Oct 22 08:43:01 EDT 2007
- Previous message (by thread): Iteration for Factorials
- Next message (by thread): Iteration for Factorials
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Py-Fun wrote:
> def itforfact(n):
> while n<100:
> print n
> n+1
> n = input("Please enter a number below 100")
You function should probably return something. After that, you can see
what happens with the result you get.
- Previous message (by thread): Iteration for Factorials
- Next message (by thread): Iteration for Factorials
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list