filmov
tv
Use namedtuples for more readable code
Показать описание
Most of you are familiar with tuples, but have you heard of their twin namedtuples as well (collections module)?
They let you accomplish the same thing but in a much nicer way.
In this short intro video we compare them with tuples, creating one and access its elements by attribute lookup.
We hope you will refactor tuples to namedtuples soon :)
Python docs:
PyBites exercises that use them:
They let you accomplish the same thing but in a much nicer way.
In this short intro video we compare them with tuples, creating one and access its elements by attribute lookup.
We hope you will refactor tuples to namedtuples soon :)
Python docs:
PyBites exercises that use them:
Use namedtuples for more readable code
Use named tuples in Python to make code more readable
Python Tutorial: Namedtuple - When and why should you use namedtuples?
Make your Python code more Readable with NamedTuples #shorts
How can namedtuples improve code readability? Transform Your Code with Namedtuples in Python!
how namedtuple works (advanced) anthony explains #102
Python Named Tuple of Python Collection Module
Intermediate Python Tutorial #7 - Collections/namedtuple()
NamedTuple in Python || Tuple vs NamedTuple
python: 4 ways to set namedtuple defaults (intermediate) anthony explains #118
How and Why We Use Namedtuples in Python: The ULTIMATE Guide! #pythontutorial #pythonprogramming
Learn how we can use NamedTuples in Python in under 60 Seconds! #python #code #learnpython #learning
Python Collections - namedtuple
23 - Python Named Tuples: Quick Definition and Example - #python #python3
How to use namedtuple in python || tuple + dictionary power in single collection || by Rohit Sharma
Python's namedtuple in a Hurry
intro to python namedtuples! (beginner - intermediate) anthony explains #100
Python's HIDDEN Data Structures #coding #programming #python #ai #tips
#39 Python for Beginners: namedtuple in Python
Python Programming Tutorial # 191 | The namedtuple Object in Python - English
Python3 Data Handling: Using Namedtuples for Immutable Data Objects
4 - How to Use Python namedtuple for Smarter and Cleaner Code - Part#1
Named Tuples in Python
Why do you have to provide the typename as the first parameter when creating a namedtuple in Python
Комментарии