Better Python list Naming Other than “list”

2019-04-05 07:51发布

Is it better not to name list variables "list"? Since it's conflicted with the python reserved keyword. Then, what's the better naming? "input_list" sounds kinda awkward.

I know it can be problem-specific, but, say I have a quick sort function, then quick_sort(unsorted_list) is still kinda lengthy, since list passed to sorting function is clearly unsorted by context.

Any idea?

7条回答
贼婆χ
2楼-- · 2019-04-05 08:16

What about L?

查看更多
登录 后发表回答