Live Python (@_LivePython) header
Live Python (@_LivePython) profile picture

Intermediate-level Python tutorials to help increase your breadth, depth and experience of Python Programming. Come and take your skills to the next level

Joined July 2019
Which little known #Python tool do you consider indispensable?
21%ast.literal_eval()
58%functools.lru_cache()
15%pdb.pm()
6%reprlib.recursive_repr()
2,146 votes • Final results
23
36
9
247
Another interesting use of #python's walrus operator is to compute differences between successive values in a data stream. This is the inverse of accumulate(): >>> data = [10, 14, 34, 49, 70, 77] >>> prev = 0; [-prev + (prev := x) for x in data] [10, 4, 20, 15, 21, 7]
25
109
10
536
Replying to @_LivePython
You're welcome. Your channel is growing and is not just luck :) Your production is great and the topics covered and the way it's done is even better. There is a black hone in Python tutorials beyond pure basics (I'm guilty too of that) but you're throwing a light there :)
1
4
Here's another recurring question about #Python nuances: stackoverflow.com/q/16706956…
2
12
41
Check out @PythonLive, they are creating some great #python content #100DaysOfCode 👍 youtu.be/oz32hoQRtgc
1
1
5