9 One-Liners to Write Python Code Like a Pro

preview_player
Показать описание
In this video we'll see some one-liners that will help you improve your Python code. Remember to use them wisely, otherwise your code will lose readability!

--------------------
Content:
0:00 IF/Else in one line
0:55 List Comprehension
2:27 Dictionary Comprehension
3:23 Join Dictionaries
4:22 Remove Duplicates in a List
5:27 Assigning multiple variables in one line in Python
6:17 Filter values from a list
7:21 Sort dictionary by keys
9:01 Sort dictionary by values
Рекомендации по теме
Комментарии
Автор

This is one of the best python lessons.

muhammaddawoud
Автор

Great tutorial! Would you mind sharing a notebook from the examples? Thank you!

fabrizziorutigliano
Автор

hi Frank for learning python web scrap in udemy. which is first time for me so do I need to learn python first and then jump into webscrap or else shall I take the course directly coz I'm novice

parthasarathyvenkatachari
Автор

For 5. you're not guaranteed to keep the order though

schogaia