0

Why its giving an error?

Why its giving a syntax error and what does cannot assign to function call means. https://code.sololearn.com/c3nk1LN01Mx6/?ref=app

26th Jan 2021, 2:05 PM
Even Dead I Am The Hero.
Even Dead I Am The Hero. - avatar
1 ответ
+ 1
in STC.lower(), lower() is a call to function and when you Loop over something ,the value is assigned to that variable or in your case function call . Example : for i in "hey": here first, i is assigned 'h' ,then 'e' and finally 'y'.
26th Jan 2021, 2:08 PM
Abhay
Abhay - avatar