Why does the pop() function not return any value when inside a function in Python?

后端 未结 0 409
长情又很酷
长情又很酷 2020-12-06 11:37

I\'m currently learning about the pop() function in Python and have a question.

>>> a = [1,2,3,4]
>>> a.pop(3) #or a.pop()
4


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