Error 1: The syntax for the range() function is incorrect. It should be written as "range(10)" with parentheses and not as "range (10)" with the space. 
Error 2: The indentation of the print function is incorrect. The function should be indented once to indicate that it is within the for loop. This error will cause an IndentationError.
Find the errors in this code snippet and explain why the errors occurred.
for i in range (10):
    print (i)