logo CodeStepByStep logo

fight_song

Language/Type: Python functions print redundancy

Write a complete program that generates the following three figures of output. Use functions to show structure and eliminate redundancy in your solution.

In particular, make sure that main contains no print statements, that any print statement(s) repeated are captured in a function that is called just once, and that the same print statement never appears in two places in the code.

Go, team, go!
You can do it.

Go, team, go!
You can do it.
You're the best,
In the West.
Go, team, go!
You can do it.

Go, team, go!
You can do it.
You're the best,
In the West.
Go, team, go!
You can do it.

Go, team, go!
You can do it.
Complete program: Write an entire program that you could put into a file and run outside of CodeStepByStep.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.