input: Write a function that extracts all public email addresses from a given string. The function should identify and return a list of email addresses found in the input string.
  
  def extract_emails(text):
    import re
    emails = re.findall(r"[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+", text)
    return emails
  
  print(extract_emails("My email is john@example.com and yours is john@gmail.com"))  # Output: ['john@example.com', 'john@gmail.com']
output: def extract_emails(text):
    import re
    emails = re.findall(r"[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+", text)
    return emails