title: Using string splicing to provide a URL from an email?
body: <p>I'm trying to write a program that takes a user's email and prints the URL that it is associated with. So far, I have this:</p>
  
  <pre><code>def email_intake():
      '''Takes email input from the user'''
      email = input('Enter your email: ')
      if email.find('@'):
          return(email)
  
      else:
          print('Please enter a valid email address')
          email = input('Enter your email: ')
  
  
  
  def find_domain(email):
      '''Figures out domain name associated with email provided by the user'''
      domain = email.split('@')[1]
      return (domain)
  
  
  
  
  def url_printer(domain):
      '''prints URL associated with the email provided by the user'''
      print('The domain of this email address is http//:www. ', domain)
  
  
  def main():
      email = email_intake
      domain = find_domain(email)
      url_printer(domain)
  
  
  main()
  </code></pre>
  
  <p>I'm aware that i have to do some sort of string splicing to figure out my second function, but I am not sure where to go from here. I was wondering if there was some way I could gather the info from the @ character to the . if that makes sense. Thank you!</p>