While loop for 300seconds in python : <p>I am new in python 
I want to run my while loop for 300seconds or upto 300s 
After 300seconds it must terminate 
How I can write program in python 
Plz help.</p>
