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 trialThomas Irons
2,824 PointsWrite a function named printer. The function should take a single argument, count, and should print "Hi " as many times
Can't pass this challenge. Any ideas?
Here is my code. It compiles fine, but it doesn't pass the challenge.
def printer(count):
print("Hi " * count)
def printer(count):
print("Hi " * count)
2 Answers
William Li
Courses Plus Student 26,868 PointsI don't know, I pasted your code to the challenge and it passed. And I agree with the grader, there's no issue in your code
Thomas Irons
2,824 PointsI got it to work. Maybe I missed typing the : or something. Thank you!!!!