Question: The first function would take a string and a number as parameters, and it would print the string preceded by as many spaces as specified

The first function would take a string and a number as parameters, and it would print the string preceded by as many spaces as specified by the number. Name the function as print_space.
The second function would take a string as a parameter and print it on three lines, with the string shifted to the right by a space on each consecutive line after the first line. Name the function as cascade_three.
Save your function definitions in a script file and also add the following statement at the very end of the file to execute it.
cascade_three(season)
which should output
season
season
season

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!