Prev: WANTED: Regular expressions for breaking TeX/LaTeX document into tokens
Next: ANN: Pyrex 0.9.8.6
From: Steve Holden on 24 Feb 2010 13:33 Abigail wrote: > Yesterday I downloaded and installed Python 3.1 and working through some > examples but I have hit a problem > >>>> a = raw_input("Enter a number" ) > Traceback (most recent call last): > File "<pyshell#6>", line 1, in <module> > a = raw_input("Enter a number" ) > NameError: name 'raw_input' is not defined>>>a = raw_input("Enter a number > ") > > What am I doing wrong? > > In Python 3 raw_input() is now simply called input() regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS: http://holdenweb.eventbrite.com/
First
|
Prev
|
Pages: 1 2 Prev: WANTED: Regular expressions for breaking TeX/LaTeX document into tokens Next: ANN: Pyrex 0.9.8.6 |