Simon Schuster schrieb:
[..]
>>>> x = "fljshfjh"
>>>> x
> 'fljshfjh'
>>>> count(x, 'h')
> Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
> NameError: name 'count' is not defined
> 
> I'm not sure what changed, because it used to work. anyhow thanks a lot!

You forgot to import the string module:
from string import *

Regards,
Ralf Schoenian
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to