Time Looping Python
Question: How can I write code to loop in time python? I want this code loop 10 minutes
in python.

    
    
    msList =[]
    msg = str(raw_input('Input Data :'))
    msgList.append(msg)
    

I do not wanna use `crontab` because I want this code looping in my program.


Answer: Use the `sleep` function from the `time` module. This should do what you're
asking:

    
    
    from time import sleep
    msList =[]
    while True:
        msg = str(raw_input('Input Data :'))
        msgList.append(msg)
        sleep(600)
    

