Camel Case
Camel case is a naming convention where the first word is written in lowercase and each subsequent word starts with an uppercase letter, with no spaces or underscores between them. For example, studentName, totalAmount, and calculateGrade are written in camel case. While camel case is commonly used in many programming languages like Java and JavaScript for variables and functions, it is not the preferred style in Python. According to Python's official style guide (PEP 8), variable and function names should use snake_case, and camelCase should generally be avoided to maintain consistency and readability in Python code.
Do it
Snake case
Snake case is a naming convention where all letters in a variable or function name are lowercase, and words are separated by underscores (_). For example, user_name, total_score, and calculate_average are all written in snake case. This style improves readability by clearly separating words, making code easier to understand at a glance. In Python, snake case is the recommended standard for naming variables and functions, as outlined in the official style guide PEP 8. Using snake case consistently helps keep Python code clean, readable, and maintainable across different projects and teams.