P. 1
Python 3 Tutorial Byte of Python v192

Python 3 Tutorial Byte of Python v192

|Views: 193|Likes:
Published by Bagas Dwi Agsarto
Python 3 Tutorial Byte of Python v192
Python 3 Tutorial Byte of Python v192

More info:

Published by: Bagas Dwi Agsarto on Mar 06, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/11/2011

pdf

text

original

We will try to read input from the user. Press ctrl-d and see what happens.

>>> s = input('Enter something --> ')
Enter something -->
Traceback (most recent call last):
File "", line 1, in
s = input('Enter something --> ')
EOFError: EOF when reading a line

Python raises an error called EOFError which basically means it found an end of file symbol
(which is represented by ctrl-d) when it did not expect to see it.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->