Question: Here is my code at the moment

```
percentagesOff = [5,10,15.....]

for percentage in percentagesOff:
     print("Percent off: ",percentage, end= " ")

```

and the output looks like this

```
Percent off: 5
Percent off: 10
Percent off: 15

```

and so on.

This is an example of what I want my code to look like. (have to use nested for loops as part of homework)

```
                     $10     $100    $1000
Percent off: 5%       x       x        x 
             10%      x       x        x
             15%      x       x        x 
             20%      x       x        x

```

My question is focusing on this part 

```
Percent off: 5%
             10%
             15%
             20%

```

I'm struggling to figure out how to only print the `Percent off:` part once in my for loop.

Answer: 
I really dislike teachers who tell students to accomplish something without having shown them the *right* tool for the job. I'm guessing you haven't yet been introduced to the `string.format()` method? Without which, lining up your columns will be an utter pain. You're trying to use a hammer when you need a screwdriver.

Anyway, regardless of that, I'd say that the right approach is to print a string of spaces the same length as 'Percent off:' when you don't want that string. So:

```
poff = 'Percent off: '
pad = ' '*len(poff)

p = poff
for percentage in percentagesOff:
     print(p ,percentage, end= " ")
     p = pad                   # for all subsequent trips around the loop

```

Better style would be to allow for the possibility that you might want `poff` output again (say) at the top of each page of output. So a better way to do the second code block is

```
for lineno, percentage in enumerate(percentagesOff):
     if lineno==0: # can replace later with are-we-at-the-top-of-a-page test?
         p = poff
     else
         p = pad
#    p = poff if lineno==0 else pad  # alternative shorter form
     print(p ,percentage, end= " ")

```
The fact is that python print add line break after your string to be printed. So,
Import `import sys` and, before your loop, use that: 

```
sys.stdout.write('               $10     $100    $1000\n')
sys.stdout.write('Percent off:')

```

And now, you can start using print to write your table entries.

You can simply add a if statement with a boolean too.