logo CodeStepByStep logo

print_design

Language/Type: Python for loops functions

Write a function named print_design that produces the following output. Use for loops to capture the structure of the figure.

-----1-----
----333----
---55555---
--7777777--
-999999999-
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.