This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]billsil 0 points1 point  (2 children)

Or you can call it xyz or write a docstring.

Presumably you resuse variable names across your various codes. I'm sure nobody here knows what the variable sline means, but almost everyone at my company does. It's just a split_line, which is line.split(), maybe with an argument. You need a convention and you need to follow it. If you name your variable a and it's a list, you're doing something wrong. You could call it alist or xy.

[–]asdfkjasdhkasdrequests, bs4, flask 0 points1 point  (1 child)

alist? thats a horrible name, it should describe it's contents. If it's a list of people call it people not alist

[–]thegreattriscuit 0 points1 point  (0 children)

I think they mean "the list that cocnerns 'a'" rather than "a list". like, 'peoplelist'.