Difference Between List and Tuple in Python

Опубликовано: 14 Октябрь 2024
на канале: Python Developer - 0.1
45
0

List
Lists are used to store multiple items in a single variable.

List items are indexed, ordered, changeable, and allow duplicate values.

Allow Duplicates
Lists are indexed, lists can have items with the same value.

Tuple
Tuples are used to store multiple items in a single variable.
A tuple is a collection which is ordered and unchangeable.

interview questions

Remove Special Characters from String
   • Remove Special Characters from String...  

Iterator
   • Iterator in Python programing languag...  

Max,min number
   • How to find Minimum and Maximum value...  

Prime Number
   • Prime Number Program in Python | inte...  

Palindrome
   • Palindrome Program in Python  

Even and odd number
   • Even and Odd number Program in Python  


Thank You! 💖