The issue is that you did
for i in range(10):
but Python expects this kind of format
for i in range(10):
# code logic here
print(i) # example way to handle it
you must always have some sort of expression after "for", "while", "def", etc. in order to let Python accept it