logo CodeStepByStep logo

print_wave

Language/Type: Python for ascii art
Author: Allison Obourn (on 2016/09/25)

Write a function named print_wave that uses for loops to produce the following output:

v
v
vv
vv
vvv
vvv
vvvv
vvvv
vvvvv
vvvv
vvvv
vvv
vvv
vv
vv
v
v
Function: Write a Python function as described, not a complete program.

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.