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= " ")

```
You can just pull it out of the for loop, then it gets printed only once, or you could "remember" that you already printed it by setting some boolean variable to `True`(initialized at `False`) and then checking whether that variable is `True` or `False` before printing that part of the string.