Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele 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.

Tehtävä

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.

Ratkaisu

Mark tasks as Completed
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 3
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?

Kysy tekoälyä

expand
ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

book
Working with functions

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

Tehtävä

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.

Ratkaisu

Mark tasks as Completed
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 3
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt