If the 'choice' valiance contains 'a','b','c' at the list each character link a number ('1','2','3').
For example choice = ['a','b','c'] links the numbers '1','2','3'.
choice = ['a','b','c']
def select(choice):
if choice == ['a']:
answer = '1'
elif choice == ['b']:
answer = '2'
elif choice == ['c']:
answer = '3'
elif choice == ['a', 'b']:
answer = "'1', '2'"
elif choice == ['a', 'c']:
answer = "'1', '3'"
elif choice == ['b', 'c']:
answer = "'2', '3'"
else
answer = "'1', '2', '3'"
Could I simply make it using another method?