SPLIT method
This method splits the given string into a list where the string is split at each occurrence of the pattern.
Uppgift
Swipe to start coding
- Define a text variable
"The cat is cute. The dog is also cute."
. - Split the text according to the
"."
in the text. - Print the results.
Lösning
Mark tasks as Completed
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 7
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 11.11
SPLIT method
This method splits the given string into a list where the string is split at each occurrence of the pattern.
Uppgift
Swipe to start coding
- Define a text variable
"The cat is cute. The dog is also cute."
. - Split the text according to the
"."
in the text. - Print the results.
Lösning
Mark tasks as Completed
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 7