listing list #listex py [ "as it is""abc" + jindex start with location of number is ' in the list print( [ ] print( [ ]abc #replace 'abcwith 'xyza[ ]='xyzprint( [ ]xyz add at the end of list append( print( [ 'as it is''abc'( + ) tuple tuple is similar to the list tuple consists of values separated by commas as shown in listing tuple can be considered as 'read-onlylist because it' values and size can not be changed after defining it listing tuple #tupleex py "as it is""abc" + #some times (brackets are used to define tuple as shown below # ( "as it is""abc" + index start with location of number is ' in the list print( [ ] print( [ ]abc ##following lines will give error ##as value can be changed in tuple # [ ]='xyzerror ##as size of the tuple can not be changed append( error dictionary dictionary can be seen as unordered list with key-value pairs in the other workssince list' elements are ordered therefore it' elements can be access through index as shown in listing on the other handlocation of the elements of the dictionary get changed after defining ittherefore key-value pairs are requiredand the values can be accessed using keys as shown in listing listing dictionary #dictex py mydict {define new dictionary mydict[ "one is called key"oneis called value mydict[' '"alphabet print(mydict{ 'one'' ''alphabet'(continues on next page basics