Answers for "methods used with list and tuple in python"

1

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 "methods used with list and tuple in python"

Python Answers by Framework

Browse Popular Code Answers by Language