Python Zamknij limit czasu wejściowego

import sys, select
timeout = 5
print(f"You have {timeout} seconds to make your move: ")
i, o, e = select.select([sys.stdin], [], [], timeout)

if (i) :
    entry = sys.stdin.readline().strip()
else :
    entry = 'dEfAuLt vAlUe'

print(f'Variable "entry" is set to "{entry}"')
Annoying Armadillo