[Solved] Can someone please tell me why the two python codes below produce entirely different outcomes?

[ad_1]

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

[ad_2]

solved Can someone please tell me why the two python codes below produce entirely different outcomes?