+ 1
Fill in the blanks to create a pattern that matches strings that contain 3 characters, out of which the last character is an exc
can you help me
34 Respostas
+ 6
You need to match two "any character", followed by an exclamation mark. In regular expressions, "any character" is matched by using a dot. And the exclamation mark is a regular character, so you match it using... an exclamation mark :)
So you are looking for:
..!
+ 6
answer is
r"..!quot;
+ 4
the answer is r
+ 4
+
+ 4
str = r "I am \r\a\w!"
+ 2
ill in the blanks to create a pattern that matches strings that contain 3 characters, out of which the last character is an exclamation mark.
answer is
r"..!quot;
+ 2
Fill in the blanks to replace all '!' characters in str with a dot '.'
+ 1
Fill in the blanks to match strings that are not entirely composed of digits.
import re
pattern = r"[
^
0-9
]
"
m = re.search(pattern, "Hi there!")
+ 1
ans is r
+ 1
r use
+ 1
Is this answer correct? I fill ! in the blanks but it show false.
0
Sounds difficult and is difficult, sorry
0
use +
0
Helpful
0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
0
r"(42)+quot;
0
It's answer is r"..!quot;
0
answer
r"..!quot;
0
Fill in the blanks to match strings that are not entirely composed od digits
0
str = r "I am \r\a\w!"