Namedtuple | Python Immediate Tutorials

Опубликовано: 07 Октябрь 2024
на канале: SavageCamp
22
2

Namedtuple
The general tuple that we saw in our python beginner tutorials have limited use. You just put in the values and it stores it.
With namedtuples its like tuple ++ .
it is an upgraded version that helps you assign values to a predefined set of variables that you declare.
Not only that, you'll learn how to use specific values from the namedtuple and how to replace the values inside them.

Follow our socials to be updated with our videos:
FB: http://bit.ly/savageCampFb​
Insta: https://bit.ly/savagecampinsta