[Tutor] VERY basic question
ALAN GAULD
alan.gauld at btinternet.com
Thu Oct 2 13:56:31 CEST 2014
I've been using Python3 for a while now so forgot how Python 2
handled input errors.
You could use Python 2 but you'd need to replace input() with raw_input().
But for learning I'd advise you to stick with Python3, just don't delete
python2 from your PC since several Linux tools rely on it.
Alan Gauld
Author of the Learn To Program website
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
>----Original message----
>From : stefan.sthilaire at gmail.com
>Date : 02/10/2014 - 00:30 (BST)
>To : alan.gauld at btinternet.com
>Subject : Re: [Tutor] VERY basic question
>
>You're a saint. I installed the latest version...3.4 and it executes
>with no errors.
>
>Thanks Again.
>
>
>Stefan
>
>
>On 10/01/2014 06:25 PM, ALAN GAULD wrote:
>>> Hi Alan, yes I just type python at the shell to get into interactive
>>> mode. Yes all I do is hit the enter key and I get this response. Nothing
>>> else. I am following a book to learn python and this is one of the first
>>> exercises. The Hello World, followed by a prompt to hit enter to exit.
>>>
>> ok, its because you are using Python2 interpreter.
>>
>> Start python using python3 and see what happens.
>>
>> Alan g
>
>
More information about the Tutor
mailing list