Answers for "when to use tuples and when to use lists"

10

python tuple vs list

#tuples and lists are the same thing, but a tuple cannot be changed
tup = (1,'string',True)
lst = ['hiya',23545,None]
Posted by: Guest on March-26-2020

Code answers related to "when to use tuples and when to use lists"

Python Answers by Framework

Browse Popular Code Answers by Language