Abschnitt 1. Kapitel 16
single
Challenge: Find Lines with Keyword
Swipe um das Menü anzuzeigen
Aufgabe
Wischen, um mit dem Codieren zu beginnen
Write a function that prints all lines from a list that contain a specific keyword.
- Iterate through each string in the
lineslist. - For each string, check if the
keywordis present. - Print every string that contains the
keyword.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 16
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen