Advanced Python - Partial Functions #07

preview_player
Показать описание
This is a python tutorial for everyone who already knows the basics!
Welcome to Advanced free course, where you can further polish your programming in Python on your own! Begin your adventure with Software-Engineering now!

Advanced Python Course:

Channel Page:

Outro Music:
Outro Music License:

Timecodes
00:00 - Intro
00:04 - What are Partial Functions
00:38 - Importing Partial Functions
01:10 - Defining a Partial Function
02:48 - Overwriting values set by the Partial Function
03:07 - Deriving a partial function requiring no input
03:32 - Outro

#coding #programming #python #tutorial #course
Рекомендации по теме
Комментарии
Автор

Why would I want to do this instead of defining square_it to be a regular (potentially a local) function? I could just write

def square_it(num: float) -> float:
return num_to_power(num, 2)

gaboralmasi
Автор

why can't I just write 'def square_it(num): num_to_power(num, 2)

ChannelMath
join shbcf.ru