Answers for "tuple and list in python"

2

tuple and list in python

#to create a tuple you use ( ) :
myTuple = ()
#but to create a list you use [ ] :
myList = []
#tuples cannot be changed while the lists can be modified but Tuples are
#more memory efficient
Posted by: Guest on July-09-2021

Code answers related to "tuple and list in python"

Python Answers by Framework

Browse Popular Code Answers by Language