""" Purpose: demonstrate multi-assignment """ # variable names need to start with letters generally # Start of the new millenium month, day, year = "January", 1, 2000 # comma separation is perfectly good, we've got 3 targets and 3 values # same as saying month = "January" # day = 1 # year = 2000 # need same number of targets and values # putting quotes around numbers makes them numeric strings, which are # different than numbers. we will talk more on this later # Letters in love c1, c2, c3, c4 = "love" # string is a sequence of characters # this will assign a single character to each of c1-4 # because 'love' is 4 letters long and we have 4 targets, this will work # Results print( month, day, year ) print() print( c1, c2, c3, c4 ) # prints separated by a space because of the comma # we could take out the spaces using a different operator that we will learn about # later