Working with Tuples in Python

Publicado em: 02 Novembro 2017
no canal de: 365 Data Science
1,725
11

👉🏻 Download Our Free Data Science Career Guide: https://bit.ly/3h5HVgl
👉🏻 FREE MONTH! Get full access to our newly redesigned platform and all our courses (18th October - 18th November): https://bit.ly/2Q2eBLU

Tuples are another type of data sequences but differently to lists. They are immutable. Tuples cannot be changed or modified. You cannot append or delete elements.

The syntax that indicates you are having a tuple and not a list is that the tuples elements are placed within parentheses and not brackets.

By the way the tuple is the default sequence type in Python. So if I enlist three values here the computer will perceive the new variable as a tuple. We could also say that three values will be packed into a tuple. For the same reason we can assign a number of values to the same number of variables. Do you remember we went through that a few lectures ago? On the left side of the Equality sign we just added a tuple of variables and on the right a tuple of values!

► Consider hitting the SUBSCRIBE button if you LIKE the content: https://www.youtube.com/c/365DataScie...

► VISIT our website: https://bit.ly/365ds

🤝 Connect with us LinkedIn:   / 365datascience  

365 Data Science is an online educational career website that offers the incredible opportunity to find your way into the data science world no matter your previous knowledge and experience. We have prepared numerous courses that suit the needs of aspiring BI analysts, Data analysts and Data scientists.

We at 365 Data Science are committed educators who believe that curiosity should not be hindered by inability to access good learning resources. This is why we focus all our efforts on creating high-quality educational content which anyone can access online.

Check out our Data Science Career guides:    • How to Become a... (Data and AI Career Gui...  

#Python #Tuples #Finance


Nesta página do site você pode assistir ao vídeo on-line Working with Tuples in Python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário 365 Data Science 02 Novembro 2017, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,725 vezes e gostou 11 espectadores. Boa visualização!