Welcome to the Treehouse Community
Looking to learn something new?
Greg IsaacsonCourses Plus Student 702 Points
Still getting used to writing my own functions
Please help me with this code...what am I doing wrong???
As I understand functions, you need to start with:
def "insert function name"()
My count is = 10
then print ("hi" * count or 10).
Then I need to call it again printer()...
def printer(): count = 10 print("hi"*count) printer()
Umesh Ravji42,362 Points
Hi Greg, your almost there, just two issues.
1. The printer function should take one argument
count so make sure to include that in the definition too. Since this is passed into the function, you shouldn't declare a local variable
count, so remove that.
2. You don't need to call the
printer function again.
def printer(count): print("hi" * count)