セクション 3. 章 7
single
Get One Dimensional Array Using Slice and Only Positive Indexes
メニューを表示するにはスワイプしてください
Let's examine the syntax of slicing: array[start:end:step], where:
startis the index from which the slicing begins;endis the index at which the slicing concludes (note that this index is not included);stepis the parameter that specifies the intervals between the indices.
タスク
スワイプしてコーディングを開始
Consider the following array: [11, 5, 87, 1, 44, 11, 6, 0, -5].
You need to obtain the following array: [87, 11, -5].
Use a slice with ONLY NON-NEGATIVE start, end, and step values.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 7
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください