title: How do I add an element to right before the last element?
body: <p>I can't figure out how to index <code>list.insert</code> if the prompt allows the user to add multiple items to the list. I need to add <code>&quot;and&quot;</code> right before the last item of what ever is listed.</p>
  <pre><code>listToPrint = []
  while True:
      newWord = input(&quot;Enter a word to add to the list (press return to stop adding words) &gt; &quot;)
      if newWord == &quot;&quot;:
          break
      else:
          listToPrint.append(newWord)
  print(listToPrint)
  </code></pre>