Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Get One Dimensional Array Using Slice and Only Positive Indexes | Indexing and Slicing
Practice
Projects
Quizzes & Challenges
Quiz
Challenges
/
NumPy in a Nutshell
close
Sezione 3. Capitolo 7
single

single

bookGet One Dimensional Array Using Slice and Only Positive Indexes

Scorri per mostrare il menu

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.
Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 7
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

some-alt