python restrict keyboard input to an application code example
Example: getting player input python
print("Say: 'Hi!'")
answer = input()
print(answer)
##Output##
#Say: 'Hi!'
#Hi!
print("Say: 'Hi!'")
answer = input()
print(answer)
##Output##
#Say: 'Hi!'
#Hi!