Difference Between List & Tuple In Python Programming | Python Interview Questions | Python Learning

Опубликовано: 24 Апрель 2023
на канале: Anybody Can Code
149
1

In Python, lists and tuples are both used to store a collection of items. However, there are some key differences between them.

1. Syntax: - Lists are enclosed in square brackets [ ],
tuples are enclosed in parentheses ( )

2. tuples are immutable, they are faster to access and process compared to lists. Tuples are also more memory-efficient.

Anybody Can Code




   • Basis Information About Data Science.  


На этой странице сайта вы можете посмотреть видео онлайн Difference Between List & Tuple In Python Programming | Python Interview Questions | Python Learning длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Anybody Can Code 24 Апрель 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 149 раз и оно понравилось 1 зрителям. Приятного просмотра!