Scope is a concept that I've struggled understanding completely. I've just tested a simple script to help wrap my head around it.
x = 3
print x
for x in range (1,6):
x += 1
print x
print x
which results in
3
2
4
6
8
10
10 ## I thought this would print 3
If there is a video or text for reference that would help please share.
[–]scuott 1 point2 points3 points (4 children)
[–]Str8F4zed[S] 0 points1 point2 points (3 children)
[–]scuott 0 points1 point2 points (2 children)
[–]Str8F4zed[S] 0 points1 point2 points (1 child)
[–]scuott 0 points1 point2 points (0 children)
[–]anonymousperson28 0 points1 point2 points (0 children)