Question from the Python - Fundamentals test

Find all words in a sentence using regular expressions in Python

Easy

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 190 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!