title: Is it possible to assign an variable to return result?
body: <p>Is it possible to assign a variable to an return result of an function ?</p>
  <p>First I want to acquire the website from email like for e.g xxxxx@hotmail.com will return only hotmail.com. Then if that website is equal to 'hotmail.com' return 'Yes' if not equal return 'No'.</p>
  <pre><code>def mail(var):
  
  x = return var.split('@')[1]
  
  if x == 'hotmail.com':
      return 'Yes'
  else:
      return 'No'
  </code></pre>
  <p>I know it's not the right code but I hope You get the idea. Thanks for your help !</p>