Variables
Python variable names consist of an upper- or lower-case letter or the “_” (underscore)
character followed by an unlimited number of upper- or lower-case characters, digits or
underscore characters.
Variables are assigned values by use of the “=” (equals) character. A sequence may be assigned to multiple variables using a single equals character. Variable names are case sensitive, so the name “startdate” is not the same name as “startDate”.
|
Example: Assigning Values to Variables
i = 0 j = 1 k = -10998 string_1 = “abc” i, j, k, string_1 = 0, 1, -10998, “abc” |