Junior — Middle
Can you give an example of a coding principle or standard you followed in your previous work?
sobes.tech AI
Answer from AI
One of the frequently applied coding principles in Python is following PEP 8 — the official style guide for code formatting. For example, using 4 spaces for indentation, naming variables in snake_case, and classes in PascalCase. This improves code readability and maintainability within a team.
Example:
class UserProfile:
def __init__(self, user_name):
self.user_name = user_name
def display_name(self):
print(f"User: {self.user_name}")
It is also important to write clear variable and function names, avoid overly long functions, and use comments where the logic is not obvious.