Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Email Slicer/Email Slicer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
email = input("Enter Your Email: ").strip()
email = input("Enter your email account name: ").strip()
email = email.split("@")

username = email[:email.index('@')]
domain = email[email.index('@') + 1:]

print(f"Your username is {username} & domain is {domain}")
print(f"Your username is {email[0]} and your domain is {email[1]}")