Section 1. Chapitre 16
single
Challenge: Find Lines with Keyword
Glissez pour afficher le menu
Tâche
Glissez pour commencer à coder
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 16
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion