Here I am try to reverse the string using below logic,
st = "This is Ok"
rst = list(st)
rst.reverse()
''.join(s for s in rst)
It is working fine, But when I try to following below logic i am getting an error,
st = "This is Ok"
''.join(s for s in list(st).reverse())
Here is an error,
----> 1 ''.join(s for s in list(st).reverse())
TypeError: 'NoneType' object is not iterable
Please any one explain the above process.