filmov
tv
Changing python grammar to support standalone walrus assignments
Показать описание
Build Your Own Redis / DNS / BitTorrent / SQLite - with CodeCrafters.
In the video, I explained the introduction of the walrus operator in Python version 3.8, which enables assignment expressions. These expressions assign a value and return it for reuse, making code more readable and intuitive. By delving into Python's grammar, I identified why a simple assignment expression like a colon equal to 10 results in a syntax error. I modified the grammar to allow this syntax, demonstrating how to make the code work as intended. This process involved understanding Python's grammar rules and making necessary adjustments to resolve the syntax error.
# Recommended videos and playlists
If you liked this video, you will find the following videos and playlists helpful
# Things you will find amusing
# Other socials
I keep writing and sharing my practical experience and learnings every day, so if you resonate then follow along. I keep it no fluff.
Thank you for watching and supporting! it means a ton.
I am on a mission to bring out the best engineering stories from around the world and make you all fall in
love with engineering. If you resonate with this then follow along, I always keep it no-fluff.
Комментарии