7 Simple Tricks to Write Better Python Code
– 0:50 Using enumerate()
– 3:22 Using zip()
– 6:35 Tuple unpacking
– 9:40 Default dict values
– 12:42 For … else
– 16:13 File reading with ‘with’
– 19:40 Exception handling
source:
$link[host]
Read Original Source