#!/usr/bin/python
#Polling in python
loop = True
def polling(loop):
while(loop):
print 'Hai. The program starts running'
print 'Enter STOP to close program!'
user_input = "dsfs"
if user_input == "STOP":
loop = False
print 'Closing the program'
#Calling function polling()
polling(loop)
No comments:
Post a Comment