## Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

### Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today. I am also confused about "multiply string by integer". How is this relevant here?

printer.py
```def printer():
while counter:
counter -= 1
print("Hi ")
printer()
```

Hey Alexander!

In python you can multiply a string by an int, and it will print that string how many times you asked it to. For example:

```print("_" * 40) # This will print out "_" 40 times
```

So, the task asks you to pass an argument called "count" to the function, so your have to put that argument between the parenthesis in the function, like this:

```def printer(count):
```

And you don't need to call the function in this exercise, so there is no need to use:

```printer()
```

Now using all that information, your code should look something like this:

```def printer(count):
print("Hi" * count)
```

Yes! You definetly can. It makes your code a little bigger, but you can do it. The thing is that, you'd have to create a variable to compare the count to. Here is how I did it.

```def printer(count):
num = 0
while num < count:
print("Hi")
num += 1
```

Cheers!

Python’s for statement iterates over the items of any sequence. So you'd use for loops to go through something like a list of things and execute a block of code while doing so. For example:

```list = [1, 2, 3, 4]
for num in list:
print num
```

This code will print every item in the list. In plain english, it means something like... for every num in this list, I want you to print the num. So the "for count" statement is incorrect. It would read in english: for every count... So it's incomplete. "while count" reads: while count is True, do something.

Just bellow the text field in the "Add an Answer" section, there is a link called Markdown Cheatsheet. There it tells you everything you need to know about how to format your posts. To write a section of code, you need to write a block with three ` . And close it once you are done with your code.

What do you mean?

You can, but it's slightly different from what you wrote. Here is how I did it.

```def printer(count):
while count != 0:
print("Hi")
count -= 1
```

Good to know this works too! No problem! Happy coding =)