A variable name is the label you choose for a stored value. Python has naming rules, and programmers use simple habits to make names readable.
A name may contain letters, numbers, and underscores. It cannot begin with a number. It cannot contain spaces or hyphens.
favorite_color = "green"Line-by-line explanation
favorite_coloruses letters and an underscore, so it is valid.- The underscore joins two words because spaces are not allowed.
"green"is stored under that name.
student_age = 12Line-by-line explanation
student_ageclearly describes the information.=stores a value.12is the stored value.