Try this:
myDict = {} # Create your own
userKey = input()
if userKey in myDict:
myValue = myDict[userKey]
print('Value is found: {}'.format(myValue))
else:
print('No such key!')
Or you may prefer this one:
myDict = {}
userKey = input()
myValue = myDict.get(userKey, 'No such key!')
print(myValue)