def select_command(commands, user_input):
    user_input = user_input.strip().lower()
for command in commands:
    if command.startswith(user_input):
        return command
return None
fastest way to compare strings in python