Why, when appending a list and assigning the code to another variable evaluates my code to 'None'?

前端 未结 0 343

I wanted to add a word to my list so the following code works.

text = \'A quick brown fox jumps over the lazy dog\'
x = text.split()
print(x)

x.append(\'cat\         


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