[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-391232-105":59,"doc-detail-391232-en":130},{"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","python-interview-questions-list-vs-tuples-key-features","Python Interview Questions - List vs Tuples - Key Features","","Python interview questions covering core concepts: differences between lists and tuples (mutability, speed, syntax), key language features like interpreted and dynamically typed nature, object orientation and first-class functions, plus explanations of interpreted languages, PEP 8 formatting, and Python memory management via private heap and garbage collection. Further topics include namespaces, PYTHONPATH, common built-in modules, local vs global variables, case sensitivity, type conversion functions, and Windows installation steps with environment variables, ending with indentation requirements.",{"@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/python-interview-questions-list-vs-tuples-key-features/391232/",{"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/python-interview-questions-list-vs-tuples-key-features/391232.png","ImageObject",300,407,{"name":92,"@type":93},"Fahsai","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-08","2026-09-25",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What are the main differences between lists and tuples in Python?","Question",{"text":112,"@type":113},"Lists are mutable and can be edited, while tuples are immutable. Tuples are faster than lists, and their syntax uses [] for lists and () for tuples.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What are the key features of Python?",{"text":117,"@type":113},"Python is an interpreted, dynamically typed language. It supports object-oriented programming, uses first-class objects for functions and classes, and can be extended with C-based extensions for performance.",{"name":119,"@type":110,"acceptedAnswer":120},"How is memory managed in Python?",{"text":121,"@type":113},"Python uses a private heap for objects, managed by Python’s memory manager. It also includes an inbuilt garbage collector that recycles unused memory back to the heap.","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},391232,1790449449,{"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":39,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145},549768702563,"https://ap-avatar.wpscdn.com/avatar/8000c4aa63b76e948b?x-image-process=image/resize,m_fixed,w_180,h_180&k=1786536092046926083","Python Interview Questions  \nQ1 . What is the difference between list and tuples in Python?  \nLIST vs TUPLES  \n| LIST | TUPLES |\n| --- | --- |\n| Lists are mutable i.e they can be edited. | Tuples are immutable (tuples are lists which can’t be edited) . |\n| Lists are slower than tuples. | Tuples are faster than list. |\n| Syntax: list_ 1 = [10,‘Chelsea’, 20] | Syntax: tup_ 1 = (10,‘Chelsea’ , 20) |\n\nQ2 . What are the key features of Python?  \n􀁸 Python is an interpreted language. That means that, unlike languages like C and its variants, Python does not need to be compiled before it is run. Other interpreted languages include PHP and Ruby.  \n􀁸 Python is dynamically typed , this means that you don’t need to state the types of variables when you declare them or anything like that. You can do things like x=111 and then x=\"I'm a string\" without error  \n􀁸 Python is well suited to object oriented programming in that it allows the definition of classes along with composition and inheritance. Python does not have access specifiers (like C++’s public, private) .  \n􀁸 In Python, functions are first-class objects. This means that they can be assigned to variables, returned from other functions and passed into functions. Classes are also first class objects  \n􀁸 Writing Python code is quick but running it is often slower than compiled languages. Fortunately，Python allows the inclusion of C-based extensions so bottlenecks can be optimized away and often are. The numpy package is a good example of this, it’s really quite quick because a lot of the numbercrunching it does isn’t actually done by Python  \n􀁸 Python finds use in many spheres – web applications, automation, scientific modeling, big data applications and many more. It’s also often used as “glue”code to get other languages and components to play nice.  \nQ3 . What type of language is python? Programming or scripting?  \nAns: Python is capable of scripting, but in general sense, it is considered as a general-purpose programming language.  \nQ4.Python an interpreted language. Explain.  \nAns: An interpreted language is any programming language which is not in machinelevel code before runtime. Therefore, Python is an interpreted language.  \nQ5.What is pep 8?  \nAns: PEP stands for Python Enhancement Proposal. It is a set of rules that specify how to format Python code for maximum readability.  \nQ6 . How is memory managed in Python?  \nAns: Memory is managed in Python in the following ways:  \n1. Memory management in python is managed by Python private heap space. All Python objects and data structures are located in a private heap. The programmer does not have access to this private heap. The python interpreter takes care of this instead.  \n2. The allocation of heap space for Python objects is done by Python’s memory manager. The core API gives access to some tools for the programmer to code.  \n3. Python also has an inbuilt garbage collector, which recycles all the unused memory and so that it can be made available to the heap space.  \nQ7 . What is namespace in Python?  \nAns: A namespace is a naming system used to make sure that names are unique to avoid naming conflicts.  \nQ8 . What is PYTHONPATH?  \nAns: It is an environment variable which is used when a module is imported. Whenever a module is imported, PYTHONPATH is also looked up to check for the presence of the imported modules in various directories. The interpreter uses it to determine which module to load.  \nQ9 . What are python modules? Name some commonly used built-in modules in Python?  \nAns: Python modules are files containing Python code. This code can either be functions classes or variables. A Python module [is a .py](is a .py) file containing executable  \ncode.  \nSome of the commonly used built-in modules are:  \n􀁸 os  \n􀁸 sys  \n􀁸 math  \n􀁸 random  \n􀁸 data time  \n􀁸 JSON  \nQ10.What are local variables and global variables in Python?  \nGlobal Variables:  \nVariables declared outside a function or in global space are called global variab","cbCaiqhN2EiaUvMs","https://ap.wps.com/l/cbCaiqhN2EiaUvMs","pdf",1215131,26,"English","# Python Interview Questions\n## Data Structures and Code Style\n## Core Language Concepts\n## Environment, Modules, and Variables\n## Type Conversion and Setup","[{\"question\":\"What are the main differences between lists and tuples in Python?\",\"answer\":\"Lists are mutable and can be edited, while tuples are immutable. Tuples are faster than lists, and their syntax uses [] for lists and () for tuples.\"},{\"question\":\"What are the key features of Python?\",\"answer\":\"Python is an interpreted, dynamically typed language. It supports object-oriented programming, uses first-class objects for functions and classes, and can be extended with C-based extensions for performance.\"},{\"question\":\"How is memory managed in Python?\",\"answer\":\"Python uses a private heap for objects, managed by Python’s memory manager. It also includes an inbuilt garbage collector that recycles unused memory back to the heap.\"}]","Python Interview Questions - List vs Tuples - Key Features | PDF",1790350253,66]