[Tutor] Help

Deirdre Saoirse deirdre@deirdre.net
Sat, 8 Jul 2000 17:40:17 -0700 (PDT)


You forgot to import the string module:

import string

On Sat, 8 Jul 2000, Daniel W Wobker wrote:

> Can someone tell me why I am getting an error on this line of code.
> The totural says it will work but it dose not on my computer.
> 
> >>> string.strip('str') + 'ing' 
> Traceback(innermost last):
>   File "<interactive input>", line 1, in ?
> NameError: string
> 
> Thanks 
> Dan
> 

-- 
_Deirdre   *   http://www.sfknit.org   *   http://www.deirdre.net
"Trust me, I'm a science fiction writer" -- Larry Niven @ Conolulu