What are the key difference between lists and tuples in python with examples

Veröffentlicht am: 29 Dezember 2021
auf dem Kanal: TutorialShore
558
10

What are the key difference between lists and tuples in python

Sno. LIST TUPLE
1 Lists are defined using square brackets [ ] Tuples are defined in round brackets ( )
2 Lists are mutable Tuples are immutable
3 Lists are many built-in methods: Since list is mutable list having additional functionalities like insert , sort and pop are available. Tuples are less in-built methods: tuples doesn’t support any of this functionalities
4 lists having variable length Tuples has fixed length
5 The Lists are less memory efficient than the tuples The tuples are more memory efficient than the list


Auf dieser Seite können Sie das Online-Video What are the key difference between lists and tuples in python with examples mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer TutorialShore 29 Dezember 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 558 Mal angesehen und es wurde von 10 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!