Sectie 1. Hoofdstuk 16
single
Challenge: Find Lines with Keyword
Veeg om het menu te tonen
Taak
Veeg om te beginnen met coderen
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 16
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.