[Tutor] strange bidi requirement
Benno Lang
transmogribenno at gmail.com
Wed Feb 24 18:46:26 CET 2010
On 25 February 2010 01:34, rick <rdole1 at cogeco.ca> wrote:
> I'm trying to write a math quiz program that replicates an old book on
> arithmetic.
>
> when it comes to summing a long column, I need to read the answer from
> the user, one digit at a time.
>
> so, if the answer should be something like
>
> 14238.83
>
> I would need to read the .03, then the .8, and so on. I figure all
> strings, cast to int (well, for this example, float). Would this be
> easier if I learned some GUI programming? Can it be done at all in
> just console?
If you really want just console, you'll probably need to use curses:
http://docs.python.org/library/curses.html
HTH,
benno
More information about the Tutor
mailing list