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 trialConner Williams
Courses Plus Student 3,305 Pointshow do I write this function?
trying to understand how to use the multiply function in this instance.
def printer(count):
if count() == 10:
print int("count" * 10)
2 Answers
Steven Parker
231,275 PointsHere's a few hints:
- you won't need a conditional
- you must always have the string "Hi "
- after you "multiply" the string, don't try to convert it into an integer
charlesmonaghan
742 PointsYou're really close!
At the moment, you've done a lot more than you need to.
You have the first line correct and second line can be deleted since it's not needed.
For the third line, there is no need to covert it into a int, and you accidently turned count into a string.
If you still can't solve it, just reply to this and I'll show you how I solved it.
Hope this helps!