Question from the Python - Fundamentals test

Find all words in a sentence using regular expressions in Python

Medium

What is the value of the words variable after the following code is executed ?

import re
sentence = "The quick brown fox jumps over the lazy dog"
words = re.findall(r'\w+', sentence)
Author: ThéoStatus: PublishedQuestion passed 103 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!