Python autocomplete user input [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have a list of teamnames. Let's say they are teamnames=["Blackpool","Blackburn","Arsenal"] In the program I ask the user which team he would like to do stuff with. I want python to autocomplete the user's input if it matches a team and print it. So if the user writes "Bla" and presses enter , the team