Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Get One Dimensional Array Using Slice and Only Positive Indexes | Indexing and Slicing
NumPy in a Nutshell

Deslize para mostrar o menu

book
Get One Dimensional Array Using Slice and Only Positive Indexes

Let's examine the syntax of slicing: array[start:end:step], where:

  • start is the index from which the slicing begins;

  • end is the index at which the slicing concludes (note that this index is not included);

  • step is the parameter that specifies the intervals between the indices.

Tarefa

Swipe to start coding

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 7

Pergunte à IA

expand
ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

book
Get One Dimensional Array Using Slice and Only Positive Indexes

Let's examine the syntax of slicing: array[start:end:step], where:

  • start is the index from which the slicing begins;

  • end is the index at which the slicing concludes (note that this index is not included);

  • step is the parameter that specifies the intervals between the indices.

Tarefa

Swipe to start coding

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 7
Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Sentimos muito que algo saiu errado. O que aconteceu?
some-alt