Back to Browse

40 Python Tips that will break your brain

11.3K views
Oct 7, 2025
19:38

00:00 - 1. args and kwargs. 00:51 - 2. The filter() function. 01:25 - 3. Writing to a file. 01:55 - 4. Pretty-printing data structures. 02:22 - 5. Timing code execution. 03:15 - 6. Library location. 03:27 - 7. Substring of a string. 04:01 - 8. Convert bytes to string. 04:35 - 9. Reading multiple numbers from inputs. 05:02 - 10. Create dictionary from two lists. 05:21 - 11. Finding permutations of a list. 05:57 - 12. List unpacking. 06:13 - 13. File location. 06:26 - 14. Return multiple values from a function. 06:50 - 15. extend() vs append(). 07:28 - 16. Extracting zip files. 07:53 - 17. Finding out recursion limit. 08:18 - 18. Walrus operator. 08:50 - 19. Pattern matching. 09:42 - 20. f-string debugging. 10:02 - 21. LRU cache. 10:43 - 22. Modern path handling with pathlib. 11:21 - 23. Function decorators for logging. 11:44 - 24. String formatting with different bases. 12:05 - 25. Using any() and all() for cleaner conditionals. 12:28 - 26. Type hints for better code documentation. 13:10 - 27. Chaining comparison operators. 13:33 - 28. Using property decorators for getters and setters. 14:08 - 29. Using suppress() to ignore specific exceptions. 14:42 - 30. Using Counter for frequency counting. 15:04 - 31. Creating custom operators with operator overloading. 15:47 - 32. Using __call__ to make objects callable like functions. 16:10 - 33. Memory views for zero copy operations. 17:12 - 34. Big number readability with underscores. 17:41 - 35. Joining strings. 17:49 - 36. Making money while sleeping. 18:04 - 37. For/Else construct. 18:25 - 38. Swapping dictionary keys and values. 18:40 - 39. Deep copies. 18:59 - 40. Serialization.

Download

1 formats

Video Formats

360pmp421.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

40 Python Tips that will break your brain | NatokHD