Correct way to pause Python program
Question: I've been using the input function as a way to pause my scripts

    
    
    print("something")
    wait = input("PRESS ENTER TO CONTINUE.")
    print("something")
    

is there a formal way to do this?


Answer: Seems fine to me (or `raw_input()` in Python 2.X). Alternatively you could use
`time.sleep()` if you want to pause for a certain number of seconds.

    
    
    import time
    print("something")
    time.sleep(5.5)    # pause 5.5 seconds
    print("something")
    

