Home » Python » Should I use “camel case” or underscores in python? [duplicate]

Should I use “camel case” or underscores in python? [duplicate]

Posted by: admin November 1, 2017 Leave a comment

Questions:

This question already has an answer here:

Answers:

for everything related to Python’s style guide: i’d recommend you read PEP8.

To answer your question:

Function names should be lowercase, with words separated by
underscores as necessary to improve readability.

Questions:
Answers:

PEP 8 advises the first form for readability. You can find it here.

Function names should be lowercase, with words separated by
underscores as necessary to improve readability.

Questions:
Answers:

Function names should be lowercase, with words separated by
underscores as necessary to improve readability. mixedCase is allowed
only in contexts where that’s already the prevailing style

Check out its already been answered, click here