title: Python EOL while scanning string literal
body: <p>i am trying to create a output file for to use in a class project but it keeps giving the an EOL while scanning string literal on this line: <code>outfile = open(r'C:\Users\kay\Documents\CCA Classes\CIS 119\numbers.txt', 'w')</code>. I know the "\" is a special character but my book says the r prefix makes it a raw string which should make this the file location.  What am I doing wrong?</p>
  
  <pre><code>#This program creates the number file 
  import os
  def main():
       #Get how many numbers from the user
       many_num = int(input("Enter how many numbers ' + \
                              you will be adding: '))
  
       #Open a file for writing
       outfile = open(r'C:\Users\kay\Documents\CCA Classes\CIS 119\numbers.txt', 'w'")
  
       #Get the numbers and write to the file
       for count in range(1,many-num +1):
            numbers = int(input('Enter a number: ' + \
                                 str(count) + ': '))
  
            #write number to file
            outfile.write(str(numbers) + '\n')
  
       #Close the file
       outfile.close()
       print('Data written to numbers.txt.')
  
  #Call main function
  main()
  </code></pre>