top of page
learn_data_science.jpg

Data Scientist Program

 

Free Online Data Science Training for Complete Beginners.
 


No prior coding knowledge required!

Python code To check an Email This function is use to checks an email for the @ symbol


def email_verifier(email):
arobase_symbol = '@'
if arobase_symbol in email:
    print("The email address is correct")
else:
    print("Please enter a valid email")

This function take a string (an emai)l as a parameter and check if the @ symbole is in this email.


Here we are using the "in" statement to find out @ in our address.


The in statement is use search a value in a sequence, like in our case, we are using it to find out @ symbol in our address.


0 comments

Recent Posts

See All

Hozzászólások


bottom of page