11. How to create custom functions in python

preview_player
Показать описание
Python functions are super helpful so we don't have to let the same line of code over and over. Instead, we can write the code block once and call it over and over. Functions are flexible and they can accept different numbers of parameters and even varying numbers and types of parameters or parameters with key values or default values. This video gives an example of how we can use these to convert Fahrenheit to Celsius and a custom one using a Lambda function which is essentially a one-line version of a function.
Рекомендации по теме
Комментарии
Автор

could you maby add an explanation why the value of sorted_list is nontype_object?

richardp