Learning the Python Language

Variables

Variable Names

Unlike many other programming languages, Python does not require you to prefix variable names with a special signifier character. Variable names consist of alphanumeric strings, where the name must begin with an alphabetical or underscore character, and the Python interpreter determines through the syntax of the expression when a variable name has been assigned or is being used.

By convention, variable names in Python programs consist of all lowercase characters. Underscore characters or camelCaps are not used to differentiate words within most Python programs. The underscore character is prefixed to variable names by convention to indicate that a given class variable should not be accessed ...

Get Apache Derby—Off to the Races: Includes Details of IBM® Cloudscape™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.