1
How do I change a global variable's value within a while statement?
TheFlooBearer (2)

https://repl.it/@TheFlooBearer/Local-Global

In this example, I am trying to have the program change the AB variable's (Global Variable) value within a [while] statement. When I have the program print out the variable's value after the program if finished, it hasn't changed at all, no matter how many times the [while] loop is looped. Is there a way to change this?

You are viewing a single comment. View All
Answered by ArchieMaclean (517) [earned 5 cycles]
View Answer
1
TheFlooBearer (2)

@ArchieMaclean Wow, thanks a lot. I make a lot of those I have noticed, But yes, that does make sense.