[Tutor] Fib sequence code assignment

spir denis.spir at gmail.com
Sat Mar 22 14:48:05 CET 2014


On 03/21/2014 10:21 PM, Gary wrote:
> Dear Jerry,
>
> Thank you so much, once you see it it seems so clear, but to see it I might as well  be in the Indian Ocean. Got kinda close using temporary variable,but didn't know enough to use del.
> A lesson learn.

You don't need del (here). Every variable is automagically recycled at the end 
of the current scope, meaning usually the end of the function (fib). In 
practice, we so-to-say never need del in python (the common exception being to 
delete an item in a collection).

d


More information about the Tutor mailing list