I need to identify if the string is at least 2 characters or else, they need to input the string again. The code doesn't work, what did I do wrong?
For example, I type "jason@yahoo.c":
email_address = input('Enter your email address: ')
dns_label = email_address.split('.')
local = dns_label[0]
dns = dns_label[1]
if not len(local)>=2 and len(dns)>=2:
email_address = input('''Your email address is incorrect.\n Please type your email address again: ''')
else:
print(email_address,'is valid')
After the dot it only has 1 character, so it will ask the user again for the input. What did I do wrong?