def choice_to_number(choice):
    """Convert choice to number."""
    # If choice is 'rock', give me 0
    # If choice is 'paper', give me 1
    # If choice is 'scissors', give me 2
    random_dict = {'rock': 0, 'paper': 1, 'scissors': 2} 
    return random_dict[choice]