Rule Definition
Consistency in object naming conventions improves the reading comprehension of new contributors to the code base and thus increases productivity. Naming conventions reported in the official Python style guide known as PEP-8 is recognized as a standard accross the industry and the open source community.
Remediation
Rename the variable (and updated all references to it) following the PEP-8 recommendations in https://pep8.org/#prescriptive-naming-conventions.
Violation Code Sample
# example 1
l = len(values)
# example 2
badName = values[red]
Fixed Code Sample
# example 1
length = len(values)
# example 2
good_name = values[red] # snake_cased variable name
Related Technologies
Technical Criterion
Documentation - Style Conformity
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.