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

Task

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.

Solution

Mark tasks as Completed
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 3
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

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.

Task

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.

Solution

Mark tasks as Completed
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

close

Awesome!

Completion rate improved to 16.67
some-alt