Тёмный

key Function // Python One-Liner Tips & Tricks 

Noah Rubin
Подписаться 23 тыс.
Просмотров 2,3 тыс.
50% 1

In this video, we learn how the key function parameter of the sorted, min, and max functions works.

Опубликовано:

 

17 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@georgezolla4580
@georgezolla4580 5 лет назад
This one hurt my brain for awhile. To understand I inputted a string, then defined a function that sorted without using the key parameter. Then I defined another function using the key parameter = str.casefold and printed both outputs to see the difference. It works like magic. I can understand the key parameter being used to change the incoming string but then to change it back is very interesting. Coded the min and max functions with and without using the key parameter = str.casefold. Nice exercise! Well worth the time. I look forward to learning about If statements and using lists (arrays?)
@priyanshsingh6162
@priyanshsingh6162 4 года назад
i loved this thanks
@nro337
@nro337 5 лет назад
This is my life now, my love
Далее
Sets // Python One-Liner Tips & Tricks
8:28
Python Decorators in 15 Minutes
15:14
Просмотров 431 тыс.
Что с Аминой из кампуса?
00:46
Просмотров 528 тыс.
меня не было 9 дней
12:48
Просмотров 2,3 млн
5 Good Python Habits
17:35
Просмотров 432 тыс.
How to Use Python Lambda With the Sort Method
7:28
Просмотров 23 тыс.
The Algorithm Behind Spell Checkers
13:02
Просмотров 407 тыс.
Premature Optimization
12:39
Просмотров 772 тыс.
This Is Why Python Data Classes Are Awesome
22:19
Просмотров 796 тыс.
ALL 47 STRING METHODS IN PYTHON EXPLAINED
23:34
Просмотров 121 тыс.
Solve any Star Pattern program in Python
18:44
Просмотров 880 тыс.
Python Logging - Tutorial
15:02
Просмотров 153 тыс.
How To Use Functions In Python (Python Tutorial #3)
14:55