0
Fill in the blanks to match both 'color' and 'colour'.
pattern = r"colo_u)_r"
14 Réponses
+ 7
pattern = r'colo(u)?r'
+ 5
pattren = r " colo ( u ) ? r "
+ 2
Fill in the blanks to match both 'color' and 'colour'.
Answer :- pattern = r"colo(u)?r"
0
thank you
0
pattern = r'colo(u)?r'
0
r"Colo(u)? r"
Because we want to get both color&colour
0
Fill in the blanks to match both 'color' and 'colour'.
pattern = r"colo
(
u)
?
r"
0
pattern = r"colo(u)?r"
0
What would be the result of len(match.groups()) of a match of (a) (b(? :c) (d) (? :e))
0
btw the answer ( & ? is right.. but my below code dint work..
line = "colour"
if re.match(r"colo(u)?r", line):
print(match)
0
pattern = r"colo(u)?r"
0
u
0
Fill in the blanks to match both 'color' and 'colour'.
answer : pattern = r"colo(u)?r"