can this be implemented?

Dan Bishop danb_83 at yahoo.com
Sun Jun 3 02:05:54 CEST 2007


On Jun 2, 6:54 pm, greenflame <alikakak... at yahoo.com> wrote:
> First I should start with some introductory comments.
>
> 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.

var = raw_input("Enter a value for var: ")

That gives you a string; if you want a number, convert it by using the
int or float constructor.




More information about the Python-list mailing list