1
2for(i) in [1,9,0,13,312,16,0,0,0,0]:3 x = i**2 +(2*i)+1
4 print(x)
Extra parentheses in code can be removed for improved readability.
In the examples below, the first example is more readable than the second one.
Preferred:
if len(some_variable) + 1 < 1:
...
Not preferred:
if (len(some_variable) + 1) < 1:
...