Most popular tags

302 questions

410 answers

70 comments

310 users

Most active Members
this week:

    Recent Badges

    Popular Question
    - 14nicholsonc -

    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 14settlea (570 points)

    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")

    time.sleep(1)

    print ("8"

    time.sleep(1) 

     

    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.
    ...