Re: problem while going through a tutorial

2006-12-12 Thread Ralf Schönian
Simon Schuster schrieb: [..] x = "fljshfjh" x > 'fljshfjh' count(x, 'h') > Traceback (most recent call last): > File "", 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 stri

Re: problem while going through a tutorial

2006-12-11 Thread John Machin
Simon Schuster wrote: > I'm new to python, and almost new to programming in general. I'm at > http://www.pasteur.fr/formation/infobio/python/ch04.html in that > tutorial, and my 'count' function (if it's called a function?) isn't > working suddenly. > > >>> x = "fljshfjh" > >>> x > 'fljshfjh' > >>

problem while going through a tutorial

2006-12-11 Thread Simon Schuster
I'm new to python, and almost new to programming in general. I'm at http://www.pasteur.fr/formation/infobio/python/ch04.html in that tutorial, and my 'count' function (if it's called a function?) isn't working suddenly. >>> x = "fljshfjh" >>> x 'fljshfjh' >>> count(x, 'h') Traceback (most recent c