This snippet worked fine
if True: print "just True"
if (True): print "(True)"
Was studying loops and these worked fine
for i in range(1, 3):
print i
i = 0
while i < 3: # without paranthesis
print i
i = i + 1
i = 0
while (i < 3): # with paranthesis
print i
i = i + 1
When I tried
for (i in range(1, 3)):
print i
I get an error "SyntaxError: invalid syntax"
I do understand the outside parenthesis is making for loop go crazy (error) but which part of the syntax am I violating? it worked fine in while loop