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 trialAndrew Fitzpatrick
3,013 Pointspython functions
i know this doesnt work but do i have to set up an accumulator im stuck
def printer():
count =(5)
print("Hi ")*5
printer()
2 Answers
Ted Dunn
43,783 PointsThe challenge states that you need to include an argument called count in your function. The argument should go in the parentheses after the function name. You do not need to supply the value of 5. The challenge tester will supply an integer and it will be supplied to your function via the count argument.
def printer(count):
print("Hi" * count)
Nazim Mohamed
1,014 PointsAlmost there the * 5 should be within the brackets as the variable count