Skip to content

Commit 31e9d47

Browse files
authored
Merge pull request #141 from DeepNinja07x/DeepNinja07x-patch-1
Create email-slicer.py
2 parents 9bdb8b0 + 21e6ae6 commit 31e9d47

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Basic Scripts/email-slicer.py

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

0 commit comments

Comments
 (0)