Email Splitter for Separating Username from Domain Name
This is my task # 01 for the first assignment from the task list uploaded in Google Classroom.
My Code Description:
- First the user will enter the email.
- Then the email will split into 2 parts which will saved in two variables assigned to the method split.
- Then print the username and domain name separately via print method.
What Is Split Built in Function:
- This method is used to split the given value/string as per the input symbol.
- Like in my case my email was hamza@outlook.com and used @ in split method so the email divided into 2 parts left (hamza) is the username and right (outlook.com)
- As I divided the string using "@" so it will not include in the divided parts.
Code Is Attached Below as a snip of Jupyter Notebook.
![](https://static.wixstatic.com/media/9b2dd8_89c7fdf025c84ed689687d181b547429~mv2.png/v1/fill/w_49,h_20,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/9b2dd8_89c7fdf025c84ed689687d181b547429~mv2.png)
Thankyou.
Regards,
Hamza Khalid