Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics (2015) Logic in Python Print "hi"

Austin Parisi
Austin Parisi
3,952 Points

Didn't find the right number of "Hi"s. I don't know where that number is supposed to come from.

I think I set up line 2 correctly, but I don't understand where to go from there.

printer.py
def printer(count):
    return (count) * "Hi "
prt = printer(5)

1 Answer

Read he question carefully it says that the function needs to print it, so you don't have to return anything