Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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