How to make a function in Python

Опубликовано: 21 Ноябрь 2022
на канале: Python Morsels
334
18

To define a function in Python, use the def keyword with the function name and any accepted arguments (in parentheses). Functions have inputs (arguments) and an optional output (the return value).

Read an article version of this video at https://pym.dev/making-a-function/

Find more Python screencasts at https://pym.dev/screencasts/

00:00 Defining a function
00:37 Accepting arguments
01:21 Positional vs keyword arguments
01:38 Default argument values
02:38 Return values
03:44 Use "def" to define a function in Python


На этой странице сайта вы можете посмотреть видео онлайн How to make a function in Python длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Python Morsels 21 Ноябрь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 334 раз и оно понравилось 18 зрителям. Приятного просмотра!