title: Best way to append and check file location
body: <pre><code>elif user == str(3):
      src = input("Enter the location of the file you wish to copy: ")
      print('\n')
      dstLocation = input("Next, enter the location where you wish to copy the file to (DO NOT ENTER FILE): ") #asks user to input destination location
      dstFile = input("Enter the file name and extension: (e.g. abc.txt) ") #ask user to input destination filename
      dst = os.path.join(dstLocation, dstFile) #Appends the dstLocation and dstFile
      if os.path.isfile(src) and os.path.isdir(dstLocation):
          while count &lt; 1:
              shutil.copyfile(src, dst)
              print('Copy successful')
              count = count + 1
      else:
          print('Copy unsuccessful')
  </code></pre>
  
  <p>I'm still learning Python, but besides the try-except method, is this a adequate way for appending a file for copying. </p>
  
  <p>Also is there a way to use switch statements, or are multiple if statements acceptable in Python</p>