I'm coming from an R background and am confused about the following:
Suppose I had "hello" in list format saved in the variable txt. Thus
txt= ['h','e','l','l','o']
After some testing, the following works:
txt.reverse()
"."join(txt)
and produces as expected olleh.
However, the following does not work:
"".join(txt.reverse())
It gives an error. I'm curious why that is the case as I thought I can "nest" function calls within function calls?
Thank you for helping!