Iteration for Factorials

vimal cool.vimalsmail at gmail.com
Mon Oct 22 09:02:03 EDT 2007


On Oct 22, 5:43 pm, Marco Mariani <ma... at sferacarta.com> wrote:
> 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.


i am just suggesting u an idea
but i dont know it satisfies ur needs

x=10
def cal_range(10)
    for i in range(10):
        print 2**i





More information about the Python-list mailing list