The second time, hi is in quotes. So it is a string literal. It is not a variable. Specifically, it is not the value of the iterator.
0
solved Can someone please tell me why the two python codes below produce entirely different outcomes?
The second time, hi is in quotes. So it is a string literal. It is not a variable. Specifically, it is not the value of the iterator.
0
solved Can someone please tell me why the two python codes below produce entirely different outcomes?