0

answer to regular expression question

import re pattern = r"spam" print("the pattern is {}" . format (pattern)) if re.match(pattern,"sp"): print("Match") else: print("no match") what is the answer for this program

5th May 2020, 8:36 AM
Senthil Kumar
Senthil Kumar - avatar
5 Respuestas
0
To confirm the answer asked in the sololearn quiz. I got different correct answer. To ensure my answer.
6th May 2020, 11:48 AM
Senthil Kumar
Senthil Kumar - avatar
0
Senthil Kumar Correct answer is : no match
6th May 2020, 3:29 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
0
You are correct. But in the solo learn question they preferred another answer. That's why I posted this question. Even I posted this comment in the section mentioned solo learn team need to look after it these kind of question. They need to review thier q&a at the end of the concept. Thanks for baring the time with me
6th May 2020, 4:02 PM
Senthil Kumar
Senthil Kumar - avatar
7th May 2020, 2:00 AM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
- 3
Why are you asking for the results?
6th May 2020, 10:58 AM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar