You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a new regular expression that will find three adjacent digits, different from the one you provided in last lesson's homework. Include your previous answer.
Your Answer:
New answer: r"\d{3}"
Previous answer: r"\d\d\d"
Mentor Comments:
none
Question 2:
What is the difference between re.match() and re.search()?
Your Answer:
re.match() matches only from the beginning of the string, while re.search() checks for a match anywhere in the string