Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
General question about Python
Kenneth is advising us to construct variable names in Python as (variable_name_all_in_lower_case). I am used to and really prefer (camelCaseWithNoUnderscores). How big a deal is it in the world at large? I don't want to buck the tide just for the sake of it. But I do prefer camelCase. In the course I think the challenges will require I follow the protocol, so I will.
Gianmarco Mazzoran22,076 Points
what Kenneth refer is PEP8, which is one of the Python Enhancement Proposals.
- Basically when we use
something_all_lower_casewe are refer to a variable or a function.
- When we use
SomethingLikeThiswe are refer to a Class object
- When we use
SOMETHING_LIKE_THISwe are refer to an immutable object.
This are just a few example, I suggest you to take a look at the page linked above. So if you follow this criteria you now your code it will be written like that of someone else. So hypothetically every file written in python is written the same way all over the world!
I hope I have given the right information and have helped you!