Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/email.py Secret

Created Jan 16, 2021
Embed
What would you like to do?
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