I am creating a script which requires input But if the user didn't respond, the script will stop there forever.
Let say I have:  
my_input = input('Y/N')
For that I think After 30 seconds if the user didn't respond, the option will be N.
Maybe It could be Done by Module  Keboard But I have No Idea.
I also tried the Following Code:  
import time #using A Module
t = time.time() + 60*0.50 #adding more time
while time.time() < t: # time is less than t cause we added more time in it
    my_input = input('Y/N') #taking answer
Hope you may help me.