Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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


#Code_Breaker
 
PREVIOUS NEXT
Tagged: #tuple #list #python
ADD COMMENT
Topic
Name
5+1 =