6 Amazing Python One-Liners

preview_player
Показать описание
Top 6 Advanced Python one liners. Generally these tips & tricks are various ways of using sets, iterable unpacking and itertools to do some powerful things in Python.

#python #pythonprogramming #pythontutorial

0:00 Intro
0:10 Iterable unpacking with *
0:44 Removing duplicate elements
1:36 Find the common elements in two lists
3:00 Zip unequal lists with zip_longest
4:51 Single line if else statement
5:26 Get first and last element from a list

==== Social Links ====

==== Software I use ====
What do you use to make content?
OS 📀: Fedora Linux
Recording 🎥: OBS studio
Video Editing ✂️: Kdenlive
Рекомендации по теме
Комментарии
Автор

Thanks a lot... learning a lot from you

iuc
Автор

I swear you've got GeeksforGeeks beat. Had an entire function to remove duplicates. Lol.

theinquisitor
Автор

Is there a speed difference between [*set(x)] and list(set(x))?

lennarth.