thanks for taking the time to help me out. I have been learning Python 3.2 this past semester, so my knowledge isn't anything more than a newbie. I am on Windows 7, using Python 3.2 and using Python's IDLE.
I am using a for loop to print a series of strings in a scrolling-like fashion. What I mean is that IDLE will print the string letter by letter. Below is the code I am using.
import os, sys, time
message=('Enter string in here. It will print what is in here letter by letter.')
for line in message:
print(line,end='')
sys.stdout.flush()
time.sleep(0.03)
My question is: Is there a way to have the entire string (message) be printed if the user were to hit 'enter' anytime throughout the time the string is being printed. So even if the user were to hit 'enter' at the beginning; the entire string would be printed.
Once again I like to thank you for taking the time to help me. It's much appreciated.