When I'm changing output type between list and tuple, one is showing output whereas other is just showing location of result. Why does this happen?
>>> symbol = '123456789'
>>> (s for s in symbol)
<generator object <genexpr> at 0x7fc0e9e2fbf8>
>>> [s for s in symbol]
['1', '2', '3', '4', '5', '6', '7', '8', '9']