Skip to content

Instantly share code, notes, and snippets.

@CodeMaster7000
Created December 26, 2021 13:21
Show Gist options
  • Select an option

  • Save CodeMaster7000/76f365fab4f0599111a0e6b3577c95ab to your computer and use it in GitHub Desktop.

Select an option

Save CodeMaster7000/76f365fab4f0599111a0e6b3577c95ab to your computer and use it in GitHub Desktop.
An email slicer built in Python 3.
email = input("Enter Your Email: ").strip()
username = email[:email.index('@')]
domain = email[email.index('@') + 1:]
print(f"Your username is {username} & your domain is {domain}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment