logo CodeStepByStep logo


Language/Type: Python for
Author: Allison Obourn (on 2017/08/29)

Write a function named print_stars that takes a number as a parameter and outputs that many stars. You should output 1 star per line. For example, the call print_stars(3) would print:

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.