[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-685635-105":59,"doc-detail-685635-en":130,"doc-similar-685635":153},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","lists-tuples-and-dictionaries-lecture-10","Lists, Tuples and Dictionaries - Lecture 10","","Lecture 10 focuses on core Python data types and how references behave in memory. It covers numbers, strings, lists, dictionaries, tuples, files, and sets, then explains dynamic typing and dereferencing with the example of A referencing a string object and garbage collection when no references remain. The lecture details list mutability, common list methods such as append, extend, pop, reverse, insert, remove, and sort, and explores multi-dimensional and arbitrarily nested lists.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/lists-tuples-and-dictionaries-lecture-10/685635/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/lists-tuples-and-dictionaries-lecture-10/685635.png","ImageObject",300,407,{"name":92,"@type":93},"Bulrr","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-26","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What does dynamic typing mean in Python, according to the lecture?","Question",{"text":112,"@type":113},"Dynamic typing allows changing the type of a variable. For example, A = '42' changes the apparent data type of A to an integer.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does dereferencing relate to garbage collection in Python?",{"text":117,"@type":113},"When all variable references to an object are removed, Python marks the object for removal. The process of removing dereferenced objects is called garbage collection.",{"name":119,"@type":110,"acceptedAnswer":120},"What are some common list methods covered in Lecture 10?",{"text":121,"@type":113},"The lecture lists methods including L.append(), L.extend(), L.pop(i) (defaulting to the last item), L.reverse(), L.insert(i, item), L.remove(item), and L.sort() for in-place sorting.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},685635,1794016103,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":56,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":14,"preview_urls":144},5909892115043,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Lists, Tuples and Dictionaries  \nHORT 59000 Lecture 10 Instructor: Kranthi Varala  \nCore data types  \n• Numbers  \n• Strings  \n• Lists  \n• Dictionaries  \n• Tuples  \n• Files  \n• Sets  \nReferences and dynamic typing  \n• Dynamic typing allows changing the type of a variable.  \n• A = ‘42’ now changes the apparent data type of A to an integer.  \nA  \nSample String  \n• The reference from A to ‘Sample String’ is removed.  \n• B still points to the ‘Sample String’ object.  \n• If all variable reference are removed from an object, the object will be marked for removal by Python.  \n• The process of removing dereferenced objects is called garbage collection  \nLists  \n• List is a general sequence object that allows the individual items to be of different types.  \n• Equivalent to arrays in other languages.  \n• Lists are mutable, i.e. , a list can be changed without having to create a new list object  \nLists: Common Methods  \n• L.append() : Adds one item to the end of the list.  \n• L.extend () : Adds multiple items to the end of the list.  \n• L.pop ( i ) : Remove item ‘i’ from the list. Default:Last.  \n• L.reverse () : Reverse the order of items in list.  \n• L.insert (i,item): Inserts ‘item’ at position i.  \n• L.remove (item) : Finds ‘item’ in list and deletes it from the list.  \n• L.sort (): Sorts the list in-place i.e. , changes the sequence in the list.  \nMultiDimensional Lists  \n• Lists are of arbitrary length and and easily be nested.  \n• Simplest nested lists are 2 –dimensional matrices.  \n• my2DList = [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]] 0 1 2 3  \nmy2DList  \n0  \n1  \n2  \n3  \n| 1 |\n| --- |\n| 2 |\n| 3 |\n| 4 |\n\n| 5 |\n| --- |\n| 6 |\n| 7 |\n| 8 |\n\n| 9 |\n| --- |\n| 10 |\n| 11 |\n| 12 |\n\n| 13 |\n| --- |\n| 14 |\n| 15 |\n| 16 |\n\nMultiDimensional Lists  \n• Nested Lists need not be homogeneous.  \n• my2DList = [[1,2,3,’a’],[5,6,7,’cat’],[9,10,’e’,12],[’beta’,14,15,16]]  \n0 1 2 3  \nmy2DList  \n0  \n1  \n2  \n3  \n| 1 |\n| --- |\n| 2 |\n| 3 |\n| a |\n\n| 5 |\n| --- |\n| 6 |\n| 7 |\n| cat |\n\n| 9 |\n| --- |\n| 10 |\n| e |\n| 12 |\n\n| beta |\n| --- |\n| 14 |\n| 15 |\n| 16 |\n\nArbitrary dimensional Lists  \n• Nested Lists need not be of the same length.  \n• my2DList = [[1,2,3,’a’],[5,6,7],[9,10,’e’,12,’cat’],[’beta’,14,15,16]]  \n0 1 2 3  \nmy2DList  \n0  \n1  \n2  \n3  \n| 1 |\n| --- |\n| 2 |\n| 3 |\n| a |\n\n| 5 |\n| --- |\n| 6 |\n| 7 |\n\n| 9 |\n| --- |\n| 10 |\n| e |\n| 12 |\n| cat |\n\n| beta |\n| --- |\n| 14 |\n| 15 |\n| 16 |\n\nArbitrary dimensional Lists  \n• Nested Lists can have arbitrary depth as well.  \n• subL = [[’p’,’q’],[‘r’,’s’]]  \n• my2DList = [[1,2,3,’a’],[5,6,7,’cat’],[9,10,’e’,12],[’beta’,14,15,subL]] 0 1 2 3  \nmy2DList  \n0  \n1  \n2  \n3  \n| 1 |\n| --- |\n| 2 |\n| 3 |\n| a |\n\n| 5 |\n| --- |\n| 6 |\n| 7 |\n| cat |\n\n| 9 |\n| --- |\n| 10 |\n| e |\n| 12 |\n\n| beta |\n| --- |\n| 14 |\n| 15 |\n|  |\n\n0 1  \n| p | q |\n| --- | --- |\n| r | s |\n\nLists as sequences of references  \n• myList = [’Name’,[Month,Date,Year],Address,[Home,Cell]]  \n\n| Str | [Ref] | Str | [Ref] |\n| --- | --- | --- | --- |\n\n| int |\n| --- |\n| int |\n| int |\n\n| Str |\n| --- |\n| Str |","cbCaimAk7Tpl8uOO","https://ap.wps.com/l/cbCaimAk7Tpl8uOO","pdf",1894719,"English","# Core data types\n## Numbers, Strings, Lists, Dictionaries, Tuples, Files, Sets\n# References and dynamic typing\n## Dereferencing and garbage collection\n# Lists and common methods\n## append, extend, pop, reverse, insert, remove, sort\n# Multi-dimensional and nested lists\n## 2-dimensional matrices\n## Arbitrary-dimensional lists\n## Lists as sequences of references","[{\"question\":\"What does dynamic typing mean in Python, according to the lecture?\",\"answer\":\"Dynamic typing allows changing the type of a variable. For example, A = '42' changes the apparent data type of A to an integer.\"},{\"question\":\"How does dereferencing relate to garbage collection in Python?\",\"answer\":\"When all variable references to an object are removed, Python marks the object for removal. The process of removing dereferenced objects is called garbage collection.\"},{\"question\":\"What are some common list methods covered in Lecture 10?\",\"answer\":\"The lecture lists methods including L.append(), L.extend(), L.pop(i) (defaulting to the last item), L.reverse(), L.insert(i, item), L.remove(item), and L.sort() for in-place sorting.\"}]","Lists, Tuples and Dictionaries - Lecture 10 | PDF",48,[145,149],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/adf12c984a367f517ea67e2ca36b2b95.webp",983,737,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/d3eaff11c0041c68b758354f472d4d26.webp",982,736,{"list":154,"token":66},[155,161,167,173,179,185,191,197,204,210],{"doc_id":156,"doc_title":157,"file_type":137,"home_preview_img_url":158,"slug":159,"view_count":34,"category_name":30,"create_tm":160},697976,"6.0001 Lecture 5 - Tuples, Lists, Aliasing, Mutability, Cloning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010146768/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=cKrWQc8CEg4bCkf6PIyAHgDoxkg%3D","60001-lecture-5-tuples-lists-aliasing-mutability-cloning",1794446554,{"doc_id":162,"doc_title":163,"file_type":137,"home_preview_img_url":164,"slug":165,"view_count":81,"category_name":30,"create_tm":166},685777,"Lists and Tuples - Learn to create and use 1D lists, tuples and 2D lists","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000203949/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=UNk%2BHAlMnnrehIJjYXU8l%2F%2B%2F7lY%3D","lists-and-tuples-learn-to-create-and-use-1d-lists-tuples-and-2d-lists",1794018226,{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":24,"category_name":30,"create_tm":172},685779,"Topic 6 - Lists, Sets, Tuples, Dictionaries","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000203959/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=6KaW7cCkYYhrjZ0Vs5QJKUAuY5g%3D","topic-6-lists-sets-tuples-dictionaries",1794018231,{"doc_id":174,"doc_title":175,"file_type":137,"home_preview_img_url":176,"slug":177,"view_count":19,"category_name":30,"create_tm":178},697977,"UNIT-III-2 - Lists, Tuples, Dictionaries - 4.1 Lists - List Operations and Methods","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010146775/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=yTcQeIyHG2IyfD2F0WnslBZmf7w%3D","unit-iii-2-lists-tuples-dictionaries-41-lists-list-operations-and-methods",1794446558,{"doc_id":180,"doc_title":181,"file_type":137,"home_preview_img_url":182,"slug":183,"view_count":34,"category_name":30,"create_tm":184},685771,"Compound Data - Lists, Tuples, Dictionaries - Unit IV - Learning Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000203726/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=krkn5n5Q%2BEaSv6KtNriPMAmXxD0%3D","compound-data-lists-tuples-dictionaries-unit-iv-learning-notes",1794018217,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":34,"category_name":30,"create_tm":190},685773,"Lists and Tuples - Chapter 7 - Programming Concepts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000203784/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=ycIYaCs2IwN3ckwseuohHXmtrnA%3D","lists-and-tuples-chapter-7-programming-concepts",1794018219,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":29,"category_name":30,"create_tm":196},670918,"The Python Cheat Sheet - Quick Reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988353374/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=%2FsupGsJovvr%2FBAccYHANBmJnnfc%3D","the-python-cheat-sheet-quick-reference",1793572702,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":30,"create_tm":203},391232,"Python Interview Questions - List vs Tuples - Key Features","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917654344/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=bIfzLmq7HnlgtmbPxiCbJ9zAS5M%3D","python-interview-questions-list-vs-tuples-key-features",15,1790350253,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":19,"category_name":30,"create_tm":209},685780,"Tuple in Python - Lecture 2","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000203975/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=94pxwxaFw6Dr6EQsGeLXi8HzRxU%3D","tuple-in-python-lecture-2",1794018232,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":81,"category_name":30,"create_tm":190},685772,"UNIT-IV - LIST, TUPLES, DICTIONARIES - Problem Solving and Python Programming","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000203776/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=9b0NV1%2BC6WWVdmsvVs3VKbHZHK0%3D","unit-iv-list-tuples-dictionaries-problem-solving-and-python-programming"]