course content

Course Content

Python Basics: Regex Wizards

Findall MethodFindall Method

findall() is a method that returns a list containing all matches of the pattern in the given string.

Task

  1. Define a text variable with "The cat is cute. The dog is also cute.";
  2. Use the findall() method and print the results.

Everything was clear?

Section 1. Chapter 8