Python Variable Names

I learned today that in Python, variable names cannot start with a number. For example, this is an incorrect variable name:

1_AA_aa

This could be used instead:

AA_aa1

http://en.wikibooks.org/wiki/Python_Beginner_to_Expert/Native_Types

Advertisements

About Lisa Johnson

PhD candidate at UC Davis.
This entry was posted in Python. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s