-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Expert Python Programming - Second Edition

The different naming styles used in Python are:
Lowercase and uppercase elements are often a single word, and sometimes a few words concatenated. With underscores, they are usually abbreviated phrases. Using a single word is better. The leading and trailing underscores are used to mark the privacy and special elements.
These styles are applied to:
There are two kinds of variables in Python:
For constant global variables, an uppercase with an underscore is used. It informs the developer that the given variable represents a constant value.
There are no real constants in Python like those in C++, where const
can be used. You can change the value of any variable. That's why Python uses a...
Change the font size
Change margin width
Change background colour