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

Contenido del Curso

NumPy in a Nutshell

NumPy in a Nutshell

1. Getting Started with NumPy
2. Dimensions in Arrays
3. Indexing and Slicing
4. Important Functions

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.

Tarea

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.

Tarea

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.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 3. Capítulo 7
toggle bottom row

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.

Tarea

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.

Tarea

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.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 3. Capítulo 7
toggle bottom row

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.

Tarea

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.

Tarea

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.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

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.

Tarea

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.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 3. Capítulo 7
Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
We're sorry to hear that something went wrong. What happened?
some-alt