Загрузка страницы

Working with Tuples in Python

👉🏻 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/365DataScience?sub_confirmation=1

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

🤝 Connect with us LinkedIn: https://www.linkedin.com/company/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: https://www.youtube.com/playlist?list=PLaFfQroTgZnyQFq4nUfb-w2vEopN3ULMb

#Python #Tuples #Finance

Видео Working with Tuples in Python канала 365 Data Science
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
2 ноября 2017 г. 18:45:07
00:03:14
Яндекс.Метрика