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 trialdfk xcm
Courses Plus Student 605 Points[SOLVED] Whats the problem of my code?
Hi
I tried to solve this task, I tried this code but it wont work, what happen?
def printer(count)
print("Hi {}".format(count)
printer("Hello")
Thanks
2 Answers
dfk xcm
Courses Plus Student 605 PointsThis is the code I used to solved the challenge
def printer(count)
print("Hi " * count)
Thanks
Luke Glazebrook
13,564 PointsHi!
Looks like you are using a method called 'printer'. Is this right? Take a look back through the video and you will soon see the problem :)
I hope this helped you out!
dfk xcm
Courses Plus Student 605 PointsI already solved, thanks :D
Luke Glazebrook
13,564 PointsThat was very quick, great job!
Iain Simmons
Treehouse Moderator 32,305 PointsIain Simmons
Treehouse Moderator 32,305 PointsHi dfk xcm, I've updated your question to indicate that you've figured it out. Can I suggest that you share your solution here in case other people are having a similar issue?
Also, I wrapped your code in a code block. Refer to the Markdown Cheatsheet (linked from below each text box used for entering a question/comment/answer on the forums) for instructions on how to format things in a code block.