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"

I'm so frustrated!

I have completed this task once before, but now I can't get past it at all after looking for a refresher in hopes to better pass a later task I was stuck on! I'm so frustrated! How come I was able to pass it then, and suddenly I can't pass it at all? I'm only at the basic stages of this course and I'm stuck. I feel like I'd have no chance once the course gets much harder! I'm so angry!

printer.py
def printer(name, number):
    print("{} how are you {}".format(name, number)

printer("Hi ", "count")
printer("Hi ", "count")
printer("Hi ", "count")

1 Answer

You need to multiply the string by the number that's passed in the function. No need to worry about format() yet unless you're not linking the right code challenge