when you run sinemessage pythe output will look like thissine messageby al sweigart al@inventwithpython com (press ctrl- to quit what message do you want to display(max chars < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programmingi < programming--snip-how it works the math sin(function in python' math module takes an argumentwhich we'll call xand returns another number called the sine of several mathematical applications use the sine functionin our programits purpose is merely to create neat wave effect we pass variable named step to math sin(this variable starts at and increases by on each iteration of the main program loop we'll use the return value of math sin(to figure out how many spaces of padding we should print on either side of the user' message since math sin(returns floating point number between - and but the minimum amount of padding we want is zeronot negative valueline adds to the return value of math sin()making the effective range to we'll certainly need more than zero to two spacesso line multiplies this number by variable named multiplier to increase the amount of padding the product of this multiplication is the number of spaces of padding to add to the left side before printing the user' message sine message