Updating Variables In For Loop
In this repl, I try to update my variables by looping through the new values, and then assigning them to the variables. However, instead of changing the variable, they only change the temporary var inside the for loop, but not the actual variable. So, how can I fix this while still using a for loop? (Because I need to use this in a bigger project)
Sorry guys, what I meant to say was looping through an iterable of the variables(x and y in this case) and then updating the variables by getting the new value from a dictionary. The problem with this however is that it only changes the temporary local variable in the for loop and not the actual x and y values.