A program sometimes reaches a fork: if the input is like this do one thing, otherwise another. if does that. Next to if you write a question whose answer is either True or False.
def solve(key):if key > 100:return "big"elif key > 10:return "medium"else:return "small"
elif means "otherwise, is this true?" and else means "if none of them".The tools for asking: == is it equal, != is it different, < > <= >= smaller or larger. % gives the remainder of a division: 7 % 2 is 1, 8 % 2 is 0. That is how you tell whether a number is even.