Data Entry

Martin Skøtt mskott at image.dk
Wed May 17 16:18:21 EDT 2000


Oscar Bosca <oscarbp at maptel.es> writes:

> It's incredible, but I've found the way to entry data from a program
> something like: ( in C )

Hmmm... I expect you forgot a word in this :-)

<SNIP C code>
> or maybe is it because with Python you can't ask for data and
> keeping it in a variable?

Well, indeed you can and its mentioned in the library refference with
the following example:
>>> s = raw_input('--> ')
--> Monty Python's Flying Circus
>>> s
"Monty Python's Flying Circus"

As you see input is nicely placed in an object. For you to play with
:-)

-- 
Martin Skøtt
mskott at image.dk

'In a certain sense, all decent programming languages are equally powerfull'
Dr. Alan Turing



More information about the Python-list mailing list