My newbie / expert guide thru the world’s best PYTHON cheat sheet

Paul Pallaghy, PhD
6 min readFeb 9, 2023
Some of Laurent Pointal’s python cheat sheet. IMAGE CREDIT | Laurent Pointal

Here’s my handy guide to both the essential — and more importantly, the easily miss-able — details in what might be the world’s best python cheat sheet. Handy for newbies & experts. I’ve added crucial examples & related code. Laurent Pointal is brilliant, thanx LP on behalf of everyone in the py community!

Python is loved by so many because it is

  • easy to read
  • easy to use
  • powerful
  • has the most libraries for just about any application including AI out of every programming language
  • many (myself included but not everyone) love the forced indentation and no curly brackets everywhere

But there are things that newbies and even experts miss . . in order of interest and frequency of use . .

Lists, dictionaries & sets

Here’s all the things for newbies and experts alike you can do with lists, dictionaries and sets:

Non-obvious / essential take-homes?

  • LOL. The most common non-trivial line of code in python…

--

--

Paul Pallaghy, PhD

PhD Physicist / AI engineer / Biophysicist / Futurist into global good, AI, startups, EVs, green tech, space, biomed | Founder Pretzel Technologies Melbourne AU