Python: Variable Names

Post Reply
User avatar
Jason
Site Admin
Posts: 688
Joined: Tue Jul 01, 2025 10:13 am

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

 

POSTREACT(ions) SUMMARY

Post Reply