""" Purpose: demonstrate string multiplication """ # we can smush strings together with + # we can use the * operator between a string and a number one_dash = "-" n = 50 # setting up numbers in variables means that if we want to change them we # only have to change them in one place dashes = n * one_dash # this makes sense to python print( n, "*", one_dash, "is", dashes ) dashes = one_dash * n # this does too print( one_dash, "*", n, "is", dashes ) # if you were getting really weird output in all_consuming.py, a lot of people were # multiplying string responses instead of casting to numbers first