[Tutor] console text positioning

Bojan Raicevic boyanpn at yahoo.com
Sat Nov 12 23:44:25 CET 2005


I'm not sure how explain my problem, but I'll try.

I want to make something that looks like console quiz.
So it would look somehow like this:

print "Question one (a,b,c,d): "
#user should answer with a,b,c or d - anything else
inputed should result without reaction - **my
problem** I DON'T want to see in console output
repeated questions like:

Question one (a,b,c,d): ftbryj
Question one (a,b,c,d): asdf
Question one (a,b,c,d): a
Question two (1,2,3,4): b
Question two (1,2,3,4): 5
Question two (1,2,3,4): 2 
Question three (a,b,c):
...

I want to see only:

Question one (a,b,c,d): a
Question two (1,2,3,4): 3
Question three (a,b,c): c 
Question four (1-10): 9 
...

So basicly, I want to see in console output only
correct answers. 
Any idea how to do this ??


		
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs


More information about the Tutor mailing list