Question: I have a responsive top bar menu. On the left I have 2 buttons in a `<ul>` element with `float:left`. On the right I have another `<ul>` element with a `float:right` align.
In the middle of the two lists, I have one `<p>` element that receives dynamic text.

This works on large screens, but in the small devices the last `<ul>` goes to down.

JSfiddle: <http://jsfiddle.net/49zjn/1/>
Resize the Result panel to view my problem.

Any ideas of how to solve this?
Thanks

Answer: 
As greg suggested, you should use a `for` loop instead of a `while` because it is more pythonic & easy to understand the code. Also, you should make your function declaration **before** the `while` loop for input, so that the python interpreter does not re-define the function everytime!

Also, if you want, you can set punctuation to a `string` rather than a `list` (for readability & ease)

```
stopWords = [ "a", "i", "it", "am", "at", "on", "in", "to", "too", "very", \
              "of", "from", "here", "even", "the", "but", "and", "is", "my", \
              "them", "then", "this", "that", "than", "though", "so", "are" ]
stemEndings = [ "-s", "-es", "-ed", "-er", "-ly" "-ing", "-'s", "-s'" ]
punctuation = ".,:;!?"

def remove_punctuation(input_string):
    for item in punctuation:
        input_string = input_string.replace(item, '')
    return input_string

line = raw_input ("Type in lines, finish with a . at start of line only:")

while not line == ".":
    newline = remove_punctuation(line)
    newline = newline.lower()

```
I find something interesting in another post that boost your code performance a lot.
Try use set like it mentioned in below link.
[Faster way to remove stop words in Python](https://stackoverflow.com/q/19560498/2674061)

Credit goes to [alko](https://stackoverflow.com/users/1265154/alko)