Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 16, 2021 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/20890427fc3ee0461991b6bb72d72710 to your computer and use it in GitHub Desktop.
Save amankharwal/20890427fc3ee0461991b6bb72d72710 to your computer and use it in GitHub Desktop.
email = input("Enter Your Email: ").strip()
username = email[:email.index("@")]
domain_name = email[email.index("@")+1:]
format_ = (f"Your user name is '{username}' and your domain is '{domain_name}'")
print(format_)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment