The conversation between human and AI assistant.
[|Human|] Correct the given code by fixing the syntax errors
[|AI|] def sum_squares(num: int):
    total = 0
    for i in range(1, num + 1):
        total = total + i * i
    return total
[|Human|] 
Correct the given code by fixing the syntax errors