Most popular tags

304 questions

415 answers


329 users

Most active Members
this week:

    How do I make python wait before printing a new line

    0 votes
    Im getting python to count down from 9 - 1 but it prints all at once, how do i get python to wait before printing a new line?
    asked Oct 21, 2016 in Python by anonymous

    1 Answer

    0 votes

    You could try this. Add "import time" (without the quotations) at the stop of the code. Then after everydelay you want, add "time.sleep(1)" (Again without the quotations) after every second you want a delay on Eg


    import time

    print ("9")


    print ("8"



    and so on.

    I'm not 100% if this would work for your use, but it is here.

    answered Oct 21, 2016 by 14cooksonj (690 points)
    Welcome to Selby Computing Q&A, where you can ask questions and receive answers from other students in Computer Science.