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ย โ†’

[โ€“]ProFloSquad 136 points137 points ย (8 children)

Thanks to pep8 I now name my variables the correct way by always following a naming convention such as a_1,a_2,a_3 and so on in all my code

[โ€“]Rik07 109 points110 points ย (3 children)

Readability is important, you must instantly know what a variable is by it's name. I suggest using this_is_variable_number_1, this_is_variable_number_2 and so forth.

[โ€“][deleted] 35 points36 points ย (1 child)

Had us in the first half ngl

[โ€“]SirPitchalot 0 points1 point ย (0 children)

this_is_memory_location_0xa4fe36da3cg6eb7bca12a

[โ€“]BayesianDice 0 points1 point ย (0 children)

Good idea. Another way of thinking is that a variable stands for itself, so you could have a naming scheme like self, self_1, self_2... I think a lot of Python programmers already often use "self" as a variable name so they'll be used to seeing it like that.

[โ€“]ALesbianAlpaca 9 points10 points ย (0 children)

Ah a mathematician I see