Skip to content

Commit

Permalink
Add Email Slicer
Browse files Browse the repository at this point in the history
  • Loading branch information
arjun-ms committed Oct 3, 2022
1 parent 09f644f commit b17c5fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions email_slicer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

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_)

0 comments on commit b17c5fa

Please sign in to comment.