Hello I am new to coding and have chosen to start off with the language python 3.x. I am running into a problem as when I declare a variable and insert it in a for loop the variable is not changed.
This can be seen as after running the code below the output remains as the original value of 5.
i = 5
for x in range(2):
i + 1
print(i)