I want to result using 'str += ' style in the lambda function
example (with error) :
t=lambda text text : [c for c in text str += c.upper()]
t(['h','e','l','l','o'])
I expect to result as :
HELLO
How can i fix above lambda function with state variable like 'str +=' style
if 'str +=' style not possible, please explain in detail why the impossible. Do not just Short-Answer that wrong.