The conversation between human and AI assistant.
[|Human|] Refactor the following code.
[|AI|] Here is one way to refactor the code to make it more concise and readable:


num_list = [1, 2, 3, 4, 5]
for number in num_list:
    if number < 3:
        result = "smaller than 3"
    elif number == 3:
        result = "equal to 3"
    else:
        result = "larger than 3"

    print(result)
[|Human|] 
Refactor the following code.