4 ms·
Worth noting that this was _fixed_ in Python 3. In Python 2.7 you get this: >>> my_list = [x for x in 'hello'] >>> x 'o'
by amirkdv 6y ago
Worth noting that this was _fixed_ in Python 3.
In Python 2.7 you get this:
>>> my_list = [x for x in 'hello']
>>> x
'o'