Oh also, as a general rule, please copy-paste and quote your code rather than posting screenshots. In this case it’s trivial, but it just makes it easier if people can copy your code and paste it into their own repl to reproduce. See here
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| REPL and for loops (scope behavior change) | 42 | 15295 | September 16, 2020 | |
| A question about variable scope | 7 | 490 | August 9, 2019 | |
| Why can't I access the variable value after a loop | 3 | 1910 | June 14, 2021 | |
| Documentation on for-loops and scoping (in and out of REPL)? | 2 | 388 | March 15, 2019 | |
| Usage of loops for defining new variables | 6 | 9639 | August 26, 2018 |