I'm trying to match the input value to a range value in a list. Like I have a list of games and a range of how many players per game. I'm trying to take the user input and return a game that falls in that category based on the range values in its list. If the user inputs 3 I'd like to print the options that all have a 3 within their range but this doesn't output anything. I'm assuming the if-statement output is false but I don't know how to correct it.
games = [
['Game 1' , 'short' , list(range(2,6))],
['Game 2' , 'short' , list(range(2,7))],
['Game 3' , 'long' , list(range(5,10))]
]
players = input('players?\n\n')
options=[]
for game in games:
if game[2] == int((players)):
options.append(game[0])
print(options)