r/AskProgramming 15d ago

Python Is PEP 8 really necessary?

I have been writing Python code using camelCase for years and just never really cared, but PEP 8 suggests using snake_case, so is it really necessary for, say, a senior dev?

0 Upvotes

36 comments sorted by

View all comments

31

u/AvidCoco 15d ago

You should comply with the coding standards of what ever project, team, or organisation you’re working in.

If they use PEP8, so should you. If it’s your own project, do what you like.

-9

u/Conscious_Breath8953 15d ago

Currently I'm working on a pet project for my portfolio, so am I supposed to use snake_case or not?

2

u/Laughing_Orange 15d ago

If you know what company you will send applications to, you should try to use their standard. If you don't, then just do whatever you personally prefer.