Using Multiple Names for Variable Lists (General Programming Style)

Due to the great programming with lists in Python, I named a lot of list variables and iterative variables to iterate through lists. Is it publicly available for Python) to use plurals for lists and singular forms for an iterative variable? Also, are there different coding conventions in different answers?

For instance:

room_states = [] for room_state in room_states: ... 

It’s easier for me to understand, but it can cause problems for other programmers who are trying to read my program, confusing it with another.

+6
source share

Source: https://habr.com/ru/post/951669/


All Articles