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"

nicholas Christie
nicholas Christie
433 Points

dont know what to write seems different from lesson

?

printer.py
def printer
    print("Hi")
printer()

1 Answer

Conrad Cortes
Conrad Cortes
8,418 Points

So on the function don't forget to close it properly.

def printer():

The question for this challenge is trying to get you to multiply hi by however many times the "count" is.. I'm sure someone else could explain exactly whats going on but this is how I passed the challenge.

def printer(count):
    print("Hi " * count) 
Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi Conrad! I moved your comment to an answer. This will mark the question as "Answered" in the forums and allow for voting on your answer :sparkles: