""" Purpose: demonstrate multi-assignment """ # Start of the new millenium month, day, year = "January", 1, 2000 # you can have multiple assignments on one line, but they must # be separated by commas. There needs to be the same number of values as there are variables. (Here, we # have 3 variables and 3 values). # Letters in love c1, c2, c3, c4 = "love" # you can unpack a string by having the same number of variables as characters # in the string. This will store one character per variable # c1 = "l" # c2 = "o" # c3 = "v" # c4 = "e" # Results print( month, day, year ) print() print( c1, c2, c3, c4 ) # there are spaces between the values of these four variables since they're # separated by a comma. The comma translates to a space