Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Working with functions | Introduction to Jupyter notebook
Introduction to Jupyter notebook: Python

book
Working with functions

In the same way as with variables, you can declare your own functions and then use them in the notebook.

Oppgave

Swipe to start coding

  1. Replace ... with the necessary calculation. Remember, your function needs to convert number of seconds to days.
  2. Replace ... with the name of function and name of variable you created before.

Løsning

Mark tasks as Completed
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 3
single

single

Spør AI

expand

Spør AI

ChatGPT

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

close

Awesome!

Completion rate improved to 16.67

book
Working with functions

In the same way as with variables, you can declare your own functions and then use them in the notebook.

Oppgave

Swipe to start coding

  1. Replace ... with the necessary calculation. Remember, your function needs to convert number of seconds to days.
  2. Replace ... with the name of function and name of variable you created before.

Løsning

Mark tasks as Completed
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!

close

Awesome!

Completion rate improved to 16.67
some-alt