Page 1 of 1

Python: Variable Names

Posted: Wed Jul 16, 2025 6:18 pm
by The Jason
They can start with an underscore (not common except in an advanced situation), lower case or upper case letter.

Other parts can contain underscores, letters, and numbers

They are case sensitive.

The data type doesn't need declaring and usually isn't probably.

Code: Select all

band = "Shocking Blue"

_song_of_band = "Venus"

NationOfBand = "Holland"

number_of_band_members_is_4 = True