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

Publié le: 24 avril 2023
sur la chaîne: 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.  


Sur cette page du site, vous pouvez voir la vidéo en ligne Difference Between List & Tuple In Python Programming | Python Interview Questions | Python Learning durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Anybody Can Code 24 avril 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 149 fois et il a aimé 1 téléspectateurs. Bon visionnage!