answer to regular expression question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
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