From 1e4e447ed7c3c4ba99afee02f8a5f2df661e5f51 Mon Sep 17 00:00:00 2001 From: Mateusz Kos <77992356+MateuszK0s@users.noreply.github.com> Date: Mon, 14 Apr 2025 20:43:44 +0200 Subject: [PATCH] Update Email Slicer.py --- Email Slicer/Email Slicer.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Email Slicer/Email Slicer.py b/Email Slicer/Email Slicer.py index bfdcd78..eb1c4d6 100644 --- a/Email Slicer/Email Slicer.py +++ b/Email Slicer/Email Slicer.py @@ -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}") \ No newline at end of file +print(f"Your username is {email[0]} and your domain is {email[1]}")