email = input("Enter your email: ")
username = email[:email.index("@")]
domain = email[email.index("@") + 1:]
print(f"Your username is {username} and domain is {domain}")
Watch video Python email slicer exercise 📧 online without registration, duration hours minute second in high quality. This video was added by user NitCode 14 November 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7 once and liked it 3 people.