Wilson Waha

Sep 24, 20221 min

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