looks like two-dimension array of rows and columns each row is represented by tuple and can be accessed as followsportfolio[ ('goog' portfolio[ ('msft' individual items of data can be accessed like thisportfolio[ ][ portfolio[ ][ here' an easy way to loop over all of the records and expand fields into set of variablestotal for namesharesprice in portfoliototal +shares price sets set is used to contain an unordered collection of objects to create setuse the set(function and supply sequence of items such as followss set([ , , , ] set("hello"create set of numbers create set of unique characters unlike lists and tuplessets are unordered and cannot be indexed by numbers moreoverthe elements of set are never duplicated for exampleif you inspect the value of from the preceding codeyou get the followingt set([' '' '' '' ']notice that only one 'lappears sets support standard collection of operationsincluding unionintersectiondifferenceand symmetric difference here' an examplea union of and intersection of and set difference (items in tbut not in ssymmetric difference (items in or sbut not bothnew items can be added to set using add(or update() add(' ' update([ , , ]add single item adds multiple items to an item can be removed using remove() remove(' ' lib fl ff