セクション 1. 章 16
single
Challenge: Find Lines with Keyword
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
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.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 16
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください