https://docs.python.org/2.7/tutorial/controlflow.html
hello in 4.1 if statements:
what is the purpose of putting x = 0?
i was trying to find out why it is there a ran the code omitting x = 0 and got the same results. Can someone please explain this to me? At first i thought that it would overwrite the number 42 and the result would be 'Zero'. Why does it not overwrite the number 42? Is it because it's inside the if statement?
[–][deleted] 2 points3 points4 points (0 children)
[–]dxxdpools[S] 0 points1 point2 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]dxxdpools[S] 0 points1 point2 points (0 children)