top of page
learn_data_science.jpg

Data Scientist Program

 

Free Online Data Science Training for Complete Beginners.
 


No prior coding knowledge required!

Writer's pictureHamza Khalid

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.



 

Thankyou.


Regards,

Hamza Khalid

1 comment

Recent Posts

See All

1件のコメント


Data Insight
Data Insight
2021年9月03日

😮 Be careful how you give your personal data away on the internet.

いいね!
bottom of page