x
, y
or a descriptive name like user_name
, birth_date
._
) but cannot start with a number.@
, $
, and &
are not allowed.name
, Name
, and NAME
are treated as three distinct variables."Hello, Python!"
is assigned to x
. Python automatically determines the type of x
as a string.9
is assigned to x
. When x + 5
is executed, Python evaluates the expression and returns 14
.x = 1
) overwrites the previous values. Hence, x + 5
evaluates to 6
.x
is first assigned a string value and then redeclared with an integer value. Python handles this seamlessly.x = "Python is fun!"
) is overwritten by the second assignment (x = 10
).x
or y
, it’s better to use descriptive names that reflect the variable’s purpose. For example:x = "John"
, use user_name = "John"
.y = 50
, use salary = 50
.name
, Name
, and NAME
are treated as distinct variables in Python.