pattern = re.compile('i')
quote = 'Not all those who wander are lost'
print(pattern.search(quote))
I have again a problem with the indentation . I believe the code is correct as I can see ‘None’ in the preview panel. Addittionally, I get the error saying " You should assign the provided string to your new quote variable." Again, I run the code to my editor and works.
While I am waiting to get some help I am reading this Indentation in Python - GeeksforGeeks
Thank you
Hello @AbdulioUnited
You may know this already or you may not, but the words and sentences highlighted with a gray background are intended to be taken as literal and significant. If you pay attention to that detail, more often than not, it will help.