time.sleep(x) not working as it should? [duplicate]
This question already has an answer here: How to print one character at a time on one line? 3 answers Okay, so I'm making a small programme for fun and I'd like to create a refresh button that allows the user to control how regularly the data is collected and shown. I decided to use the time.sleep(x) x being what the raw_input was. But it doesn't seem to be working as it should. It pauses the full script then does everything. eg: import time print "This now" time.sleep(x) print "and this after x amount of seconds" So should print the first part then the second after x amount of seconds. But