tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code26:25

13 Python Quirks That Will Surprise You

ArjanCodes ↗

From the creator

💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide. In this video, I’ll show you 13 things in Python that are just weird. The last one is really confusing, especially if you’re a new Python developer. I’ll go through each of these with a code example and I’ll explain why it’s like that. 🔥 GitHub Repository: https://git.arjan.codes/2024/weird_things ➡️ WTF Repository: https://github.com/satwikkansal/wtfpython 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses/ 🔖 Chapters: 0:00 Intro 0:12 #1 Integer caching 1:46 #2 Default mutable arguments 3:44 #3 NotImplemented VS NotImplementedError 7:24 #4 Immutable objects 9:08 #5 Booleans are weird integers 11:07 #6 Reference inconsistency 13:02 #7 Variable scope weirdness 14:30 #8 For-else clause 16:03 #9 Delayed printing 17:03 #10 JavaScript in Python? 19:08 #11 Space invader operator?! 20:08 #12 Functions have attributes? 21:05 #13 Class or instance attributes? 25:33 BOUNS #arjancodes #softwaredesign #python

Published 2024-09-13 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code