Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære What is NumPy? | Getting Started with NumPy
NumPy in a Nutshell

Sveip for å vise menyen

book
What is NumPy?

In order to feel confident and successfully complete this course, we strongly recommend you complete the following courses beforehand (just click on them to start):

NumPy is one of the many modules in the Python programming language that allows you to work with arrays and matrices. Furthermore, this module comes equipped with a robust collection of mathematical functions for manipulating these arrays.

We must import this library to use it. Let's see how we do it:

python

The syntax for using a function from the library is as follows:

python

The alias should be used to simplify the use of this library. Let's see how we do it:

python

Here, 'np' is an alias. Therefore, in the future, when using functions from this library, we will do it like this:

python
Oppgave

Swipe to start coding

You need to import the NumPy library.

Carefully examine the example provided above and complete the task by filling in the blanks.

If you encounter any difficulties, refer to the hint; it will likely assist you.

Once you've completed this task, click the button below the code to check your solution.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 1
Vi beklager at noe gikk galt. Hva skjedde?

Spør AI

expand
ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

book
What is NumPy?

In order to feel confident and successfully complete this course, we strongly recommend you complete the following courses beforehand (just click on them to start):

NumPy is one of the many modules in the Python programming language that allows you to work with arrays and matrices. Furthermore, this module comes equipped with a robust collection of mathematical functions for manipulating these arrays.

We must import this library to use it. Let's see how we do it:

python

The syntax for using a function from the library is as follows:

python

The alias should be used to simplify the use of this library. Let's see how we do it:

python

Here, 'np' is an alias. Therefore, in the future, when using functions from this library, we will do it like this:

python
Oppgave

Swipe to start coding

You need to import the NumPy library.

Carefully examine the example provided above and complete the task by filling in the blanks.

If you encounter any difficulties, refer to the hint; it will likely assist you.

Once you've completed this task, click the button below the code to check your solution.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 1
Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Vi beklager at noe gikk galt. Hva skjedde?
some-alt