title: How to return a dictionary and multiple variables from a function in python?
body: <p>I am trying to set up a function that records to 2 variables and a dictionary, the dictionar works but the two variables return the wrong things</p>
  
  <pre><code>mydict{}
  fname = 0
  lname = 0
  
  def enterdetails(fname, lname):
      fname = input ("First Name: ");
      fnamedict = fname
      mydict['FirstName'] = fnamedict;
  
     lname = input ("Last Name: ");
     lnamedict = lname
     mydict['LastName'] = lnamedict;
     print(fname)
     print(lname)
  
     return mydict
     return (fname, lname)
  
  fname, lname = enterdetails(fname, lname)
  print(fname, lname)
  print(mydict)
  </code></pre>
  
  <p>However the variables of fname and lname come out as FirstName and LastName respectively. How would I fix this?</p>