👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

# for i in range python

In Python, the syntax for writing a for-loop in a given range is simply:

>>> for i in range(-2, 3):
>>> 	print(i)
-2
-1
0
1
2

More