title: Using while loop to write user input to a file
body: <p>I have created a program that allows for a user to input their name in a text file I have. The problem is I now need to make it a while loop that allows for multiple names to be entered. </p>
  
  <p>I was able to kind of get it with a for loop, but I am specifically looking for a while loop. Below is my code with no loop as of now. </p>
  
  <pre><code>filename = input ("visitor_log.txt: ");
  with open("visitor_log.txt", "w") as f:
      f.write(input("Please write your name:"));
  </code></pre>
  
  <p>The actual results would keep the names entered as a list that I could print.</p>