Hey friends....
I am a raw beginner that is going through my first tutorial book.
As a personal project, I am trying to write a study program as I progress through my studies.

In this program, it would be really neat if their was a way to clear the screen off.
I have inserrted comments as to where I'd like the screen to be cleared.

Here is the program.....
And PLEASE,, don't laugh. LOL

# Johnny's studies throughout a python book written by Michael Dawson

name = raw_input ("What is your name?   ")
# I would like to clear the screen here
print "\nHi " + name, " this is a study review going through the pages of a Python study book."
raw_input ("\n\npress the enter key to continue...")
# I would like to clear the screen here
print '\n\n\nI wanted to go through each chapter, page by page, and ask review questions.'
# I would like to clear the screen here
print 'This program is my attempt to study as I practise writting code.'
raw_input ("\n\npress the enter key to get the 1st question...")
# I would like to clear the screen here
print '\n\nNow for the first question.....'
print "\n\t\tWho was the guy that developed the Python lauguage?"
print "\n\t\t\tA. Guido van Rossum"
print "\n\t\t\tB. Monty Python"
print "\n\t\t\tC. Michael Dawson"
print "\n\t\t\tD. Alan Guald"
print "\n\t\t\tE. Jeremy Gowen"
print "\n"
letter = ""
while letter != "a":
    letter = raw_input ("Press the letter of choice, a,b,c, or d, \"lower case\"\n")
   
print "\n\t\tYES!!!  You have the correct answer"
print '\n\n\n\n\n\n\n\n\n\n'
raw_input ("press the enter key to try again...")
# I would like to clear the screen here

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to