can this be implemented?

Gabriel Genellina gagsl-py2 at
Mon Jun 4 06:24:36 CEST 2007

En Sat, 02 Jun 2007 20:54:29 -0300, greenflame <alikakakhel at>  

> When I first learned about programming, I started with BASIC, QBASIC
> to  be more accurate. While I was at that stage, I learned about the
> INPUT command. I used it abundantly.
> Ok so now for the actual issue.
> I would like to implement something like the INPUT command from BASIC.
> I failed to find something on the python website documentation for
> beginners.

This BASIC program:

INPUT "Your name"; z$
PRINT "Hello, "; z$

would be this in Python:

name = raw_input("Your name? ")
print "Hello,", name

raw_input is a built-in function, see

Gabriel Genellina

More information about the Python-list mailing list