I am new to learning python and want to run bit of a trivia. Basically, I want to ask a random question from a list and then using an 'in' operator, figure if the user input of Y/N is correct or not. I'm stuck with determining how to check whether it is correct or not. Maybe my (incorrect) code can explain better.
import random
Players = ['Patrice Evra', 'Rio Ferdinand', 'Sergio Ramos', 'Gerard Pique']
Clubs = ['Manchester United', 'Nice', 'Monaco', 'Marseille', 'West Ham United', 'Sevilla', 'Real Madrid', 'Barcelona']
Ramos = ['Sevilla', 'Real Madrid']
Evra = ['Manchester United', 'Nice', 'Monaco', 'Marseille', 'West Ham United']
Ferdinand = ['Leeds United', 'Manchester United']
Pique = ['Barcelona', 'Manchester United']
print('Did ' + random.choice(Players) + ' play for ' + random.choice(Clubs) + ' ? Y/N')
answer = input()
This is where I'm stuck and not even sure if this is the right way to go about this. Thanks for the help.