0
Question about an exercise: Fill in the blanks to create a pattern that matches strings that contain 3 characters
The exercise says like this: Fill in the blanks to create a pattern that matches strings that contain 3 characters, out of which the last character is an exclamation mark. Ok, this is my question: it asks 3 char but wouldn't be the same "--!
quot; to this "..!quot; ? am i wrong? could someone explain me why?4 odpowiedzi
+ 4
I have tried --!$ and ..!$ Only the last one works. You can use the sample code to try for yourself. And I checked the python documentation "-" is not a meta character.
https://code.sololearn.com/cuHpCaCN9nE4/?ref=app
+ 1
Thanks for the reply Paul! i get it now!
0
..!
0
..!