def sum_squares(num: int)
    total = 0
    For i in num
        total = total + i * i
    return total
Correct the given code by fixing the syntax errors
def sum_squares(num: int):
    total = 0
    for i in range(1, num + 1):
        total = total + i * i
    return total