Hi,Could you please explain this code?.f = lambda n: n-1 + abs(n-1) and f(n-1)*n or 1Thanks,-- Edgar A. Rodriguez V.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
> No, because variables are untyped in Python there is no need for> casting. In Python values have types, variables are just names. You just> use the value and if it has the correct type it will work.>
> There are some functions that transform values from one type to another.> These are not really
Does it?Thanks,-- Edgar A. Rodriguez V.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Try with Python Card. ; )-- Edgar A. Rodriguez V.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
You can use the function system() of the os module.
os.system('clear') in Unix or in Windows os.system('clear')-- Edgar A. Rodriguez V.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor