Skip to content

Commit b17c5fa

Browse files
committed
Add Email Slicer
1 parent 09f644f commit b17c5fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

email_slicer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
email = input("Enter Your Email: ").strip()
3+
username = email[:email.index("@")]
4+
domain_name = email[email.index("@")+1:]
5+
format_ = (f"Your user name is '{username}' and your domain is '{domain_name}'")
6+
print(format_)

0 commit comments

Comments
 (0)