Explain Can't Assign To Function Call Error

前端 未结 0 1737
星月不相逢
星月不相逢 2020-11-28 07:55
def func(lst):
    return lst[0]
 
 lst = [1,2,3]

 func(lst) = 5 #a

 lst[0] = 5 #b

Why does \'a\' give me a "can\'t assign to function call&q

相关标签:
回答
  • 消灭零回复
提交回复
热议问题