This is my scanner for directions:
def scan(lexicon):
lexicon = input('> ')
if lexicon[0] == 'n':
print("You want to go north")
elif lexicon[0] == 's':
print("You want to go south")
elif lexicon[0] == 'e':
print("You want to go east")
else:
print("not a valid response")
But I keep getting this :
TypeError: scan() takes 0 positional arguments but 1 was given