Findall Method
findall()
is a method that returns a list containing all matches of the pattern in the given string.
Oppgave
Swipe to start coding
- Define a text variable with
"The cat is cute. The dog is also cute."
. - Use the
findall()
method and print the results.
Løsning
Mark tasks as Completed
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 8
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 11.11
Findall Method
findall()
is a method that returns a list containing all matches of the pattern in the given string.
Oppgave
Swipe to start coding
- Define a text variable with
"The cat is cute. The dog is also cute."
. - Use the
findall()
method and print the results.
Løsning
Mark tasks as Completed
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 8