top of page

Data Scientist Program


Free Online Data Science Training for Complete Beginners.

No prior coding knowledge required!

Email Splitter App

This is a simple python app that takes a lists of emails and separate the username and the domain name.

  1. First let's create a list with some dummy emails.

  2. Create a for loop to visit each email from the list.

  3. Each time the loop executes, it will split the email into two separate parts based on '@'

  4. The first part is the username and the second part is the domain name. And the program will print it out.

Code :

lst = ["",""]
for i in lst:
    split = i.split('@')
    domain = split[1]
    user = split[0]
    print("username : ",user)
    print("domain : ", domain)

Output :

username : random1

domain :

username : random2

domain :


Recent Posts

See All


bottom of page