+ 2
Why this o/p??
import re pattern = r"^gr.y
quot; if re.match(pattern, "gpey"): print("Match 1") if re.match(pattern,"gray"): print("Match2") ^ matches at the beginning of the line right. .. What exactly does it mean????? It checks only the starting character..... or . If not how many characters does it check in the beginning Please help me with this.I'm stuck here😢😢1 Resposta
0
that happend's because your expression evaluates that the string begins with gp followed by any other character that is not a blank space and ends with y