Question from the Python - Fundamentals test

Find the word 'lazy' in a sentence using Python

Expert

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.match(r'lazy', sentence)
Author: ThéoStatus: PublishedQuestion passed 1191 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!