0

I need to check if there's a point in email after "@".

if not email.endswith('.com'):
    args['reg_error'] = "Email is incorrect!"

I need to do something like this, but with any end which has point after "@".

Arkistarvh Kltzuonstev
  • 6,824
  • 7
  • 26
  • 56

1 Answers1

0

Thank you, Arkistarvh Kltzuonstev!

I needed to write this:

if not '.' in email[email.index('@'):]:
    do something...