python logo

Variables

Variables are memory location references which store values morning_message = "Hello, Good Morning!" evening_message = "Hello, Good Evening!" print(id(morning_message)) print(morning_message) print(id(evening_message)) print(evening_message) Variable Name Rules : A variable name must start with a letter or an underscore Can only contain alphanumeric characters (A-Z, a-z, 0-9) and underscores (_) Case sensitive

February 11, 2022 · 1 min · Kei