Welcome to the Treehouse Community
Looking to learn something new?
I must not know what they're asking..
So it works in eclipse, and I must say I am very happy about the bit of code I wrote.
Earlier I had similar code that required me to use a number for count, I choose 3 and it worked fine.
What do they want?
Nathan Tallack22,159 Points
What they are trying to do here is show you that you can multiply strings when using the print function.
So your code could look like this.
def printer(count): print("Hi " * count)
Take note of the space after the Hi inside the quotation marks. :)
Ah, I guess I was over complicating it then. Thankyou! :)
John Goldring634 Points
Hi, I have been stuck on this challenge. My code:
def printer(count): print(count * "Hi ")
would not work. Could you briefly tell me why challenge doesn't like it the other way around?