Hi does anyone know why this code returns a "No" and the other one returns a "Yes"?
import re
b="@gmail.com"
x=re.findall(r"\Bgmail",b)
if x:
print("Yes")
else:
print("No") # <<<
import re
b="agmail.com"
x=re.findall(r"\Bgmail",b)
if x:
print("Yes") # <<<
else:
print("No")