{"id":25571471,"date":"2023-12-12T10:00:55","date_gmt":"2023-12-12T04:30:55","guid":{"rendered":"https:\/\/entri.app\/blog\/?p=25571471"},"modified":"2023-12-29T18:38:06","modified_gmt":"2023-12-29T13:08:06","slug":"difference-between-list-and-tuple-in-python","status":"publish","type":"post","link":"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/","title":{"rendered":"Difference Between List and Tuple in Python"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_79_2 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ea5e9e29fcb\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ea5e9e29fcb\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#What_is_a_List\" >What is a List?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#What_is_a_Tuple\" >What is a Tuple?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#Examples\" >Examples<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#Key_Differences_Between_List_and_Tuple_in_Python\" >Key Differences Between List and Tuple in Python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#Key_Similarities_Between_List_and_Tuple_in_Python\" >Key Similarities Between List and Tuple in Python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#Frequently_Asked_Questions\" >Frequently Asked Questions<\/a><\/li><\/ul><\/nav><\/div>\n<p>A versatile and powerful language, Python provides various element types such as list and tuple. Each of these elements has its own unique properties and functions. Let&#8217;s dive deeper into understanding each of these elements.<\/p>\n<p>Lists and tuples are the two basic classes of data structures in Python. Although they may seem similar, they have unique characteristics that set them apart.<br \/>\n<div class=\"lead-gen-block\"><a href=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/03\/Python_PDF.pdf\" data-url=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/03\/Python_PDF.pdf\" class=\"lead-pdf-download\" data-id=\"fbd57d1\">\n<p style=\"text-align: center;\"><button class=\"btn btn-default\">PYTHON PROGRAMMING COURSE SYLLABUS<\/button><\/p>\n<\/a><\/div>\n<h4><strong>Distinguishing Between List, Tuple in Python<\/strong><\/h4>\n<p>Let&#8217;s delve into the differences between List, Tuple, Set, and Dictionary in Python:<\/p>\n<table width=\"373\">\n<thead>\n<tr>\n<td><strong>Parameters<\/strong><\/td>\n<td><strong>List<\/strong><\/td>\n<td><strong>Tuple<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Basics<\/td>\n<td>A list is similar to an array in other languages (like ArrayList in Java or vector in C++).<\/td>\n<td>Tuples are collections of Python objects separated by commas.<\/td>\n<\/tr>\n<tr>\n<td>Homogeneity<\/td>\n<td>A list is a non-homogeneous data structure that stores elements in columns and rows.<\/td>\n<td>A tuple is a non-homogeneous data structure that stores elements in columns and rows.<\/td>\n<\/tr>\n<tr>\n<td>Representation<\/td>\n<td>A List is represented by [ ]<\/td>\n<td>A Tuple is represented by ( )<\/td>\n<\/tr>\n<tr>\n<td>Duplicate elements<\/td>\n<td>It permits duplicate elements.<\/td>\n<td>It permits duplicate elements.<\/td>\n<\/tr>\n<tr>\n<td>Nested Among All<\/td>\n<td>It can be nested in a List.<\/td>\n<td>It can be nested in a Tuple.<\/td>\n<\/tr>\n<tr>\n<td>Example<\/td>\n<td>[1, 2, 3, 4, 5]<\/td>\n<td>(10, 20, 30, 40, 50)<\/td>\n<\/tr>\n<tr>\n<td>Function for Creation<\/td>\n<td>A list can be created using the\u00a0<strong>list()\u00a0<\/strong>function.<\/td>\n<td>A tuple can be created using the\u00a0<strong>tuple()\u00a0<\/strong>function.<\/td>\n<\/tr>\n<tr>\n<td>Mutation<\/td>\n<td>It is mutable, allowing modifications.<\/td>\n<td>It is immutable, not allowing modifications.<\/td>\n<\/tr>\n<tr>\n<td>Order<\/td>\n<td>It maintains order.<\/td>\n<td>It maintains order.<\/td>\n<\/tr>\n<tr>\n<td>Empty Elements<\/td>\n<td>An empty list can be created using:<\/p>\n<p>l=[]<\/td>\n<td>An empty tuple can be created using:<\/p>\n<p>t=()<\/td>\n<\/tr>\n<\/thead>\n<\/table>\n<h2 class=\"h2\"><span class=\"ez-toc-section\" id=\"What_is_a_List\"><\/span><strong>What is a List?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In other programming languages, list objects are declared similarly to arrays. Lists need not always be homogeneous, so they can simultaneously store items of different data types. Lists thus become the most useful tool. A list is a type of Python container data structure used to store many pieces of data at once. Lists are useful when we need to iterate over some elements and keep items.<\/p>\n<p>The list has the following features &#8211;<\/p>\n<ul>\n<li>You can use Python lists to store data of multiple types simultaneously.<\/li>\n<li>Lists help preserve data sequences and further process those sequences in other ways.<\/li>\n<li>Lists are dynamic.<\/li>\n<li>Lists are mutable.<\/li>\n<li>Lists are ordered.<\/li>\n<li>An index is used to traverse a list.<\/li>\n<\/ul>\n<h3 id=\"list_syntax\"><strong>List Syntax<\/strong><\/h3>\n<p>A list is initiated with the [ ] symbol.<\/p>\n<p>Here\u2019s an example of declaring a list in python.<\/p>\n<p>num_list = [1,2,3,4,5]\n<p>print(num_list)<\/p>\n<p>alphabets_list = [\u2018a\u2019,\u2018b\u2019,\u2018c\u2019,\u2018d\u2019,\u2018e\u2019]\n<p>print(alphabets_list)<\/p>\n<p>A list can contain data of different data types. You can initiate it as follows &#8211; mixed_list = [\u2018a\u2019, 1,\u2018b\u2019,2,\u2018c\u2019,3,\u20184\u2019]\n<p>print(mixed_list)<\/p>\n<p>You can create nested lists as well. A nested list is a list inside a list.<\/p>\n<p>nested_list = [1,2,3,[4,5,6],7,8]\n<p>print(nested_list<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_is_a_Tuple\"><\/span><strong>What is a Tuple?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A tuple is another data structure for storing a collection of items of many data types, but unlike mutable lists, tuples are immutable. In other words, a tuple is a collection of items separated by commas. Because of its static structure, a tuple is more efficient than a list.<\/p>\n<p>A python tuple has the following features &#8211;<\/p>\n<ul>\n<li>Tuples are used to store heterogeneous and homogeneous data.<\/li>\n<li>Tuples are immutable in nature.<\/li>\n<li>Tuples are ordered<\/li>\n<li>An index is used to traverse a tuple.<\/li>\n<li>Tuples are similar to lists. It also preserves the data sequence.<\/li>\n<\/ul>\n<h3 id=\"tuple_syntax\"><strong>Tuple Syntax<\/strong><\/h3>\n<p>A tuple is initiated with the () symbol.<\/p>\n<p>Here\u2019s an example of declaring a tuple in python.<\/p>\n<p>num_tuple = (1,2,3,4,5)<\/p>\n<p>print(num_tuple)<\/p>\n<p>alphabets_tuple = (\u2018a\u2019,\u2018b\u2019,\u2018c\u2019,\u2018d\u2019,\u2018e\u2019)<\/p>\n<p>print(alphabets_tuple)<\/p>\n<p>A list can contain data of different data types. You can initiate it as follows &#8211;<\/p>\n<p>mixed_tuple = (\u2018a\u2019, 1,\u2018b,\u2019 2,\u2018c,\u2019 3, \u20184\u2019).<\/p>\n<p>print(mixed_tuple)<\/p>\n<p>You can create nested lists as well. A nested list is a list inside a list.<\/p>\n<p>nested_tuple = (1,2,3,(4,5,6),7,8)<\/p>\n<p>print(nested_tuple)<code><\/code><\/p>\n<article>\n<h3 id=\"syntax_differences\"><strong>Syntax Differences<\/strong><\/h3>\n<p>List and tuple act as containers for storing objects. But there is a difference in its use cases and syntax as well.<\/p>\n<p>Lists are surrounded by square brackets [ ] while tuples are surrounded by round brackets ( ).<\/p>\n<p>Creating a list and tuple in python.<\/p>\n<p>list_numbers\u00a0 = [1,2,3,4,5]\n<p>tuple_numbers\u00a0 = (1,2,3,4,5)<\/p>\n<p>print(list_numbers)<\/p>\n<p>print(tuple_numbers)<\/p>\n<p>We can use the type function to check the data type of any object.<\/p>\n<p>type(list_numbers)<\/p>\n<p>type(tuple_numbers)<\/p>\n<\/article>\n<article>\n<p style=\"text-align: center;\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\">\u201cGet hands-on with our python course \u2013 sign up for a free demo!\u201d<\/a><\/strong><\/p>\n<h3 id=\"difference_between_list_and_tuple_in_python_an_indepth_explanation\"><strong>Difference Between List and Tuple in Python (An In-Depth Explanation)<\/strong><\/h3>\n<p>The primary difference between tuples and lists is that tuples are immutable, unlike lists, which are mutable. Therefore, it is possible to change a list, but not a tuple.<\/p>\n<p>The contents of a tuple cannot change once it has been created in Python due to the immutability of tuples.<\/p>\n<p>There is no way to keep changing tuples. Error message if you attempt to change one of the items:<\/p>\n<p>names = (&#8220;Raj&#8221;,&#8221;John&#8221;,&#8221;Jabby&#8221;,&#8221;Raja&#8221;)<\/p>\n<p>names[2] = &#8220;Kelly&#8221;<\/p>\n<p>Traceback (most recent call last):<\/p>\n<p>File &#8220;&lt;stdin&gt;&#8221;, line 4, in &lt;module&gt;<\/p>\n<p>TypeError: &#8216;tuple&#8217; object does not support item assignment<\/p>\n<p>If you&#8217;re familiar with lists and maps, you know that they can be edited. You can add or remove items or reassign them to different variables. But tuples? Well, you can&#8217;t do any of that.<\/p>\n<p><strong>The reason is simple<\/strong>: tuples are immutable, which means that once you create them, you can&#8217;t change their contents. The length of the tuples is also fixed. They remain the same length throughout the program&#8217;s life cycle.<\/p>\n<p>So why would we use immutable data structures like tuples anyway? One reason is that they have little overhead compared to mutable data structures like lists and maps.<\/p>\n<article>\n<h3 id=\"mutable_list_vs_immutable_tuples\"><strong>Mutable List vs. Immutable Tuples<\/strong><\/h3>\n<p>We have already heard that tuples are immutable while lists are mutable. It simply means that you can change the existing values \u200b\u200bin the list. But you cannot change the same value if it is stored in a tuple.<\/p>\n<p>Let\u2019s take an example to understand the immutability of tuples<\/p>\n<p>Create a new list list_num and initialize it with 5 values.<\/p>\n<p>list_num=[1,2,3,4,5]\n<p>Let\u2019s replace 3 with 5.<\/p>\n<p>list_num[2] = 5<\/p>\n<p>print(list_num)<\/p>\n[1,2,5,4,5]\n<p>Carrying out similar operation in tuple.<\/p>\n<p>Create a new tuple tuple_num and initialize it with five values.<\/p>\n<p>tuple_num=(1,2,3,4,5)<\/p>\n<p>Let\u2019s replace 3 with 5.<\/p>\n<p>tup_num[2] = 7<\/p>\n<p>It will the following error &#8211;<\/p>\n[1,2,7,4,5]\n<p>Traceback (most recent call last):<\/p>\n<p>File &#8220;python&#8221;, line 3, in &lt;module&gt;<\/p>\n<p>TypeError: &#8216;tuple&#8217; object does not support item assignment.<\/p>\n<p>The error makes it clear that item assignment is not supported in the tuple. Hence it is immutable.<br \/>\n<div class=\"lead-gen-block\"><a href=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2023\/05\/1_merged-3_compressed.pdf\" data-url=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2023\/05\/1_merged-3_compressed.pdf\" class=\"lead-pdf-download\" data-id=\"fbd57d1\">\n<p style=\"text-align: center;\"><button class=\"btn btn-default\">FREE SQL TUTORIAL FOR BEGINNERS-PDF DOWNLOAD<\/button><\/p>\n<\/a><\/div>\n<\/article>\n<article>\n<h3 id=\"available_operations\"><strong>Available Operations<\/strong><\/h3>\n<p>Because a list is mutable, it has many built-in operations that you can use to achieve different results. Let&#8217;s look at such list operations.<\/p>\n<h4><strong>append()<\/strong><\/h4>\n<p>Used to add elements to the list. Elements are added to the end of the list. You can only add one element at a time. Using a loop allows you to add multiple elements at once.<\/p>\n<p>numList = [1,2,3]\n<p>numList.append(4)<\/p>\n<p>numList.append(5)<\/p>\n<p>numList.append(6)<\/p>\n<p>Using a loop for insertion<\/p>\n<p>for i in range(7, 9):<\/p>\n<p>numList.append(i)<\/p>\n<p>print(numList)<\/p>\n<h4><strong>extend()<\/strong><\/h4>\n<p>The extension operation is used to add elements to the end of a list, like the join operation. But extend() allows you to add multiple elements at once.<\/p>\n<p>numList = [1,2,3]\n<p>numList.extend([4, 5, 6])<\/p>\n<p>print(numList)<\/p>\n<h4><strong>insert()<\/strong><\/h4>\n<p>Allows you to add a new element to the list at a given position. Unlike append, it does not add elements to the end. It takes two arguments, the first argument is the position and the second argument is the element. You can insert one element at a time. So you can use a loop to insert multiple elements.<\/p>\n<p>numList = [1,2,3]\n<p>numList.insert(3, 4)<\/p>\n<p>numList.insert(4, 5)<\/p>\n<p>numList.insert(5, 6)<\/p>\n<p>print(numList)<\/p>\n<h4><strong>remove()<\/strong><\/h4>\n<p>Used to remove an element from a list. If there are multiple elements, only the first occurrence of the element is removed.<\/p>\n<p>stringList = [&#8216;List&#8217;, &#8216;makes learning fun!&#8217;, &#8216;for us!&#8217;]\n<p>stringList.remove(&#8216;makes learning fun!&#8217;)<\/p>\n<p>print(stringList)<\/p>\n<h4><strong>pop()<\/strong><\/h4>\n<p>Used to remove elements from any position in the list. Pop() takes one argument, the position of the element.<\/p>\n<p>numList = [1,2,3,4,5]\n<p>numList.pop(4)<\/p>\n<p>print(numList)<\/p>\n<h4><strong>slice.<\/strong><\/h4>\n<p>Used to print a subset of a list. You must specify a start and end position for the slicing operation.<\/p>\n<p>numList = [1,2,3,4,5,6,7,8,9]\n<p>print(numList[:9])\u00a0 # prints from beginning to end index<\/p>\n<p>print(numList[2:])\u00a0 # prints from start index to end of list<\/p>\n<p>print(numList[2:9]) # prints from start index to end index<\/p>\n<p>print(numList[:]) \u00a0 # prints from beginning to end of list<\/p>\n<h4><strong>reverse()<\/strong><\/h4>\n<p>Reverse operation reverses the original list. If you want to reverse without affecting the original list, you should use the slice function with a negative index.<\/p>\n<p>numList = [1,2,3,4,5,6,7,8,9]\n<p>print(numList[::-1])\u00a0 # does not modify the original list<\/p>\n<p>numList.reverse() \u00a0 \u00a0 # modifies the original list<\/p>\n<p>print(numList)<\/p>\n<h4><strong>len()<\/strong><\/h4>\n<p>It returns the length of the list<\/p>\n<p>numList = [1,2,3,4,5,6,7,8,9]\n<p>print(len(numList))<\/p>\n<h4><strong>min()<\/strong><\/h4>\n<p>It returns the minimum value in the list. You can use min operation successfully only if the list is homogenous.<\/p>\n<p>print(min([1, 2, 3]))<\/p>\n<h4><strong>max()<\/strong><\/h4>\n<p>It returns the maximum value in the list. You can use min operation successfully only if the list is homogenous.<\/p>\n<p>print(max([1, 2, 3]))<\/p>\n<h4><strong>count()<\/strong><\/h4>\n<p>Count operation returns the count of specified element in the list. It takes the element as an argument.<\/p>\n<p>numList = [1,2,2,4,4,6,8,8,9]\n<p>print(numList.count(3))<\/p>\n<h4><strong>concate()<\/strong><\/h4>\n<p>It is used to merge two lists into a new list. + sign is used to combine two lists.<\/p>\n<p>numList = [4,5]\n<p>stringList = [&#8216;Python&#8217;, &#8216;is fun!&#8217;]\n<p>print(numList+stringList )<\/p>\n<h4><strong>multiply()<\/strong><\/h4>\n<p>Python also allows multiplying the list n times. The resultant list is the original list iterated n times.<\/p>\n<p>numList = [1,2,3,4,5,6,7,8,9]\n<p>print(numList*2)<\/p>\n<h4><strong>index()<\/strong><\/h4>\n<p>It is used to find an element based on the index position. You need to pass two arguments to it, the first is the starting position, and the second is the ending position. When supplied, the element is searched only in the sub-list bound by the begin and end indices. When not supplied, the element is searched in the whole list.<\/p>\n<p>print(stringList.index(&#8216;HelloWorld&#8217;))\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # searches in the whole list<\/p>\n<p>print(stringList.index(&#8216;HelloWorld&#8217;, 0, 2)) \u00a0 \u00a0 # searches from 0th to 2nd position<\/p>\n<h4><strong>sort()<\/strong><\/h4>\n<p>It is used to sort the list in ascending order. You can perform this operation only on a homogeneous list. Using sort() on a heterogeneous list will throw an error.<\/p>\n<p>numList = [4, 2, 6, 5, 0, 1]\n<p>numList.sort()<\/p>\n<p>print(numList)<\/p>\n<h4><strong>clear()<\/strong><\/h4>\n<p>It clears all the elements from the list and empties it.<\/p>\n<p>numList = [1,2,3,4,5,6,7,8,9]\n<p>numList.clear()<\/p>\n<p>print(numList)<\/p>\n<p>Immutability reduces the number of inbuilt functions a tuple has. Let\u2019s take a look at such tuple operations.<\/p>\n<h4>min()<\/h4>\n<p>It returns the minimum value in the tuple. You can use the min operation successfully only if the tuple is homogenous.<\/p>\n<p>print(min((1, 2, 3)))<\/p>\n<div class=\"engagingBanner\">\n<div class=\"detail-info-banner\" data-reactroot=\"\">\n<div class=\"left-clm\">\n<article>\n<h4><strong>max()<\/strong><\/h4>\n<p>It returns the maximum value in the tuple. You can use min operation successfully only if the tuple is homogenous.<\/p>\n<p>print(max((1, 2, 3)))<\/p>\n<h4><strong>slice.<\/strong><\/h4>\n<p>It is used to print a subset of the tuple. You have to specify starting position and ending position for the slicing operation.<\/p>\n<p>myTuple = [1,2,3,4,5,6,7,8,9]\n<p>print(myTuple[:9])\u00a0 # prints from beginning to end index<\/p>\n<p>print(myTuple[2:])\u00a0 # prints from start index to end of tuple<\/p>\n<p>print(myTuple[2:9]) # prints from start index to end index<\/p>\n<p>print(myTuple[:]) \u00a0 # prints from beginning to end of tuple<\/p>\n<h4><strong>len()<\/strong><\/h4>\n<p>It returns the length of the tuple<\/p>\n<p>myTuple = [1,2,3,4,5,6,7,8,9]\n<p>print(len(myTuple))<\/p>\n<h4><strong>del()<\/strong><\/h4>\n<p>Tuples are immutable, but we can remove the tuple elements using del operation.<\/p>\n<p>Tuple1 = (1, 3, 4, &#8216;test&#8217;, &#8216;red&#8217;)<\/p>\n<p>del (Tuple1[1])<\/p>\n<h3><strong>Membership In Tuple<\/strong><\/h3>\n<p>If you want to check whether an element belongs to the tuple or not, you can use a keyword to check its membership.<\/p>\n<p>Tuple1 = (1, 3, 4, &#8216;test&#8217;, &#8216;red&#8217;)<\/p>\n<p>print (1 in Tuple1)<\/p>\n<p>print (5 in Tuple1)<\/p>\n<\/article>\n<article>\n<h3 id=\"size_comparison\"><strong>Size Comparison<\/strong><\/h3>\n<p>There is a difference in lengths between these two data structures. The length of a tuple is fixed, while the length of a list is variable. Therefore, lists can have different sizes, but tuples cannot.<\/p>\n<p>Tuples are allocated large blocks of memory with lower overhead than lists because they are immutable; while small blocks of memory are allocated for lists. Thus, tuples tend to be faster than lists if there are a large number of elements.<\/p>\n<p>a= (1,2,3,4,5,6,7,8,9,0)<\/p>\n<p>b= [1,2,3,4,5,6,7,8,9,0]\n<p>print(&#8216;a=&#8217;,a.__sizeof__())<\/p>\n<p>print(&#8216;b=&#8217;,b.__sizeof__())<\/p>\n<p>a=104<\/p>\n<p>b=120<\/p>\n<\/article>\n<article>\n<h3 id=\"different_use_cases\"><strong>Different Use Cases<\/strong><\/h3>\n<p>Python&#8217;s lists are best suited to store data in the following situations:<\/p>\n<ol>\n<li>Several types of data can be stored in lists, and their index can be used to access them.<\/li>\n<li>Lists are good for mathematical operations on a group of elements because Python allows you to perform these operations directly on the list.<\/li>\n<li>If you don&#8217;t know how many elements will be stored in your list ahead of time, it&#8217;s easy to increase or decrease its size as needed.<\/li>\n<\/ol>\n<p>Python&#8217;s tuples are best suited to store data in the following situations:<\/p>\n<ol>\n<li>It\u2019s best to use a tuple when you know the exact information that will go into the object&#8217;s fields.<\/li>\n<li>For example, if you want to store credentials for your website, it\u2019s okay to use a tuple.<\/li>\n<li>The tuples are immutable (unchangeable), so they can only be used as keys for dictionaries. But if you want to use a list as a key, make it into a tuple first.<\/li>\n<\/ol>\n<p style=\"text-align: center;\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\">\u201cLearn Python Programming course \u2013 enroll now!\u201d<\/a><\/strong><\/p>\n<h2 id=\"examples\"><span class=\"ez-toc-section\" id=\"Examples\"><\/span><strong>Examples<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h4><strong>Tuples as Dictionary<\/strong><\/h4>\n<p>As tuples are hashable, you can use them as keys for dictionaries.<\/p>\n<p>tuplekey = {}<\/p>\n<p>tuplekey[(&#8216;blue&#8217;, &#8216;sky&#8217;)] = &#8216;Good&#8217;<\/p>\n<p>tuplekey[(&#8216;red&#8217;,&#8217;blood&#8217;)] = &#8216;Bad&#8217;<\/p>\n<p>print(tuplekey)<\/p>\n<h4><strong>Tuple Packing and Unpacking<\/strong><\/h4>\n<p>Packing and unpacking improves the code readability.<\/p>\n<p>Packing means assigning multiple values to the tuple.<\/p>\n<p>Unpacking means assigning values to individual variables.<\/p>\n<h4><strong>Tuple Packing<\/strong><\/h4>\n<p>person = (&#8220;Rohan&#8221;, &#8216;6 ft&#8217;, &#8220;Employee&#8221;)<\/p>\n<p>print(person)<\/p>\n<h4><strong>Tuple Unpacking<\/strong><\/h4>\n<p>person = (&#8220;Rohan&#8221;, &#8216;6 ft&#8217;, &#8220;Employee&#8221;)<\/p>\n<p>(name, height, profession) = person<\/p>\n<p>print(name)<\/p>\n<p>print(height)<\/p>\n<p>print(profession)<\/p>\n<div class=\"engagingBanner\">\n<div class=\"detail-info-banner\" data-reactroot=\"\">\n<div class=\"left-clm\">\n<h3 id=\"when_to_use_tuples_over_lists\"><strong>When to Use Tuples Over Lists?<\/strong><\/h3>\n<p>Tuples are<a href=\"https:\/\/entri.app\/blog\/understand-what-is-mutable-and-immutable-in-python\/\"> immutable<\/a>. Therefore, they are primarily used to store data that does not change often. Any operation can store data in a tuple when you don&#8217;t want it to change.<\/p>\n<p>Tuples are great to use if you want the data in your collection to be read-only, never change, and always stay the same and constant.<\/p>\n<p>With this capability and the guarantee that the data never changes, you can use tuples in dictionaries and sets that require the elements in them to be of immutable type.<\/p>\n<p>This is useful when you need to store values \u200b\u200bthat do not change over time, such as a person&#8217;s date of birth or height.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/article>\n<\/div>\n<\/div>\n<\/div>\n<\/article>\n<\/article>\n<h2 id=\"Key-Differences-Between-List-and-Tuple-in-Python\"><span class=\"ez-toc-section\" id=\"Key_Differences_Between_List_and_Tuple_in_Python\"><\/span><strong>Key Differences Between List and Tuple in Python<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>Lists are mutable, while tuples are immutable.\n<ul>\n<li>i.e., the elements of the list can be changed, after the creation, while the elements of the tuples can\u2019t be modified.<\/li>\n<\/ul>\n<\/li>\n<li>The size of the tuples is fixed, while the list can have a variable size.\n<ul>\n<li>i.e., elements can be added or removed from the list but can\u2019t be done in the tuple.<\/li>\n<\/ul>\n<\/li>\n<li>Since tuples are immutable, they are generally faster than the list.<\/li>\n<li>Lists are used for data that needs to be changed frequently, while tuples are used for data that doesn\u2019t need to be changed frequently.<\/li>\n<\/ul>\n<h2 class=\"h2\"><span class=\"ez-toc-section\" id=\"Key_Similarities_Between_List_and_Tuple_in_Python\"><\/span><strong>Key Similarities<\/strong> <strong>Between List and Tuple in Python<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li class=\"h2\">They both hold collections of items and are<a href=\"\/\/www.dremio.com\/wiki\/heterogeneous-data\/s data types\" target=\"_blank\" rel=\"noopener\"> heterogeneous data types<\/a>, meaning they can contain multiple data types simultaneously.<\/li>\n<\/ul>\n<ul class=\"points\">\n<li>They&#8217;re both ordered, which implies the items or objects are maintained in the same order as they were placed until changed manually.<\/li>\n<li>Because they&#8217;re both sequential data structures, we can iterate through the objects they hold; hence, they are iterables.<\/li>\n<li>An integer index, enclosed in square brackets [index], can be used to access objects of both data types.<\/li>\n<\/ul>\n<h4><strong>Related Articles<\/strong><\/h4>\n<div class=\"table-responsive wprt_style_display\">\n<div class=\"table-responsive wprt_style_display\">\n<table class=\"table\" dir=\"ltr\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col width=\"329\" \/>\n<col width=\"309\" \/><\/colgroup>\n<tbody>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Kerala PSC VFA Syllabus&quot;}\" data-sheets-hyperlink=\"https:\/\/entri.app\/blog\/kerala-psc-village-field-assistant-vfa-syllabus-exam-pattern\/\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/blog\/how-to-learn-python-at-home\/\" target=\"_blank\" rel=\"noopener\">How To Learn Python At Home?<\/a><\/strong><\/td>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Kerala PSC VFA Mock Test&quot;}\" data-sheets-hyperlink=\"https:\/\/entri.app\/blog\/kerala-psc-vfa-free-mock-test\/\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/blog\/why-python-is-used-for-data-science\/\" target=\"_blank\" rel=\"noopener\">Why Python Is Used For Data Science?<\/a><\/strong><\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Kerala PSC VFA Exam Date&quot;}\" data-sheets-hyperlink=\"https:\/\/entri.app\/blog\/kerala-psc-vfa-exam-date\/\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/blog\/python-full-stack-vs-java-full-stack-developers-who-earns-more\/\" target=\"_blank\" rel=\"noopener\">Python Full Stack vs Java Full Stack Developer<\/a><\/strong><\/td>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Kerala PSC VFA Video Course&quot;}\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/blog\/object-oriented-programming-python-an-overview\/\" target=\"_blank\" rel=\"noopener\">Object Oriented Programming Python<\/a><\/strong><\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Kerala PSC VFA Application Form&quot;}\" data-sheets-hyperlink=\"https:\/\/entri.app\/blog\/kerala-psc-vfa-apply-online\/\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/blog\/python-online-course\/\" target=\"_blank\" rel=\"noopener\">Best Online Python Course with Certificate<\/a><\/strong><\/td>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Kerala PSC VFA Study Materials&quot;}\" data-sheets-hyperlink=\"https:\/\/entri.app\/blog\/kerala-psc-vfa-study-material\/\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/blog\/step-by-step-guide-for-getting-a-job-as-a-python-developer\/42\" target=\"_blank\" rel=\"noopener\">A Step-by-Step Guide for Getting a Job as a Python Developer<\/a><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions\"><\/span><strong>Frequently Asked Questions<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<div class=\"ui-js-faq\">\n<div class=\"card faq__content ui-js-faq-section-content active\" data-sectionid=\"0\">\n<div class=\"faq__list ui-js-faq-section-list\">\n<h4 class=\"faq__question ui-js-question expanded\"><strong>What is a List in Python?<\/strong><\/h4>\n<div class=\"faq__answer ui-js-answer expanded\">A list in Python is like a dynamically sized array that gets declared in other languages (Arraylist in the case of Java, vector in the case of C++). The lists don\u2019t always need to be homogeneous in nature.<\/div>\n<div>\n<h4><strong>What is a Tuple in Python?<\/strong><\/h4>\n<div class=\"faq__answer ui-js-answer expanded\">A Tuple in Python refers to the collections of various objects of Python separated by commas between them. Tuples are similar to the lists in terms of repetition, nested objects, and indexing. The difference is that a tuple, unlike a list, is immutable.<\/div>\n<div>\n<h4 class=\"faq__question ui-js-question expanded\"><strong>What is the main difference between List and Tuple in Python?<\/strong><\/h4>\n<div class=\"faq__answer ui-js-answer expanded\">The main difference between a list and a tuple in Python lies in their nature. A list is mutable and dynamic, whereas a tuple is immutable and static. Lists consume more memory and are slower compared to tuples. Lists also have more built-in methods and are more prone to errors.<\/div>\n<div>\n<table class=\"table\">\n<tbody>\n<tr>\n<td colspan=\"3\"><strong>Our Other Courses<\/strong><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/entri.app\/course\/mep-course\/\"><strong>MEP Course<\/strong><\/a><\/td>\n<td><a href=\"https:\/\/entri.app\/course\/quantity-surveying-course\/\"><strong>Quantity Surveying Course<\/strong><\/a><\/td>\n<td><a href=\"https:\/\/entri.app\/course\/montessori-teachers-training-course\/\"><strong>Montessori Teachers Training Course<\/strong><\/a><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/entri.app\/course\/performance-marketing-course\/\"><strong>Performance Marketing Course\u00a0<\/strong><\/a><\/td>\n<td><a href=\"https:\/\/entri.app\/course\/practical-accounting-course\/\"><strong>Practical Accounting Course<\/strong><\/a><\/td>\n<td><a href=\"https:\/\/entri.app\/course\/yoga-teachers-training-course\/\"><strong>Yoga Teachers Training Course<\/strong><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"modal\" id=\"modalfbd57d1\"><div class=\"modal-content\"><span class=\"close-button\">&times;<\/span>\n\n<div class=\"wpcf7 no-js\" id=\"wpcf7-f25556851-o1\" lang=\"en-US\" dir=\"ltr\" data-wpcf7-id=\"25556851\">\n<div class=\"screen-reader-response\"><p role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"><\/p> <ul><\/ul><\/div>\n<form action=\"\/blog\/wp-json\/wp\/v2\/posts\/25571471#wpcf7-f25556851-o1\" method=\"post\" class=\"wpcf7-form init\" aria-label=\"Contact form\" novalidate=\"novalidate\" data-status=\"init\">\n<fieldset class=\"hidden-fields-container\"><input type=\"hidden\" name=\"_wpcf7\" value=\"25556851\" \/><input type=\"hidden\" name=\"_wpcf7_version\" value=\"6.1.4\" \/><input type=\"hidden\" name=\"_wpcf7_locale\" value=\"en_US\" \/><input type=\"hidden\" name=\"_wpcf7_unit_tag\" value=\"wpcf7-f25556851-o1\" \/><input type=\"hidden\" name=\"_wpcf7_container_post\" value=\"0\" \/><input type=\"hidden\" name=\"_wpcf7_posted_data_hash\" value=\"\" \/><input type=\"hidden\" name=\"_wpcf7cf_hidden_group_fields\" value=\"[]\" \/><input type=\"hidden\" name=\"_wpcf7cf_hidden_groups\" value=\"[]\" \/><input type=\"hidden\" name=\"_wpcf7cf_visible_groups\" value=\"[]\" \/><input type=\"hidden\" name=\"_wpcf7cf_repeaters\" value=\"[]\" \/><input type=\"hidden\" name=\"_wpcf7cf_steps\" value=\"{}\" \/><input type=\"hidden\" name=\"_wpcf7cf_options\" value=\"{&quot;form_id&quot;:25556851,&quot;conditions&quot;:[],&quot;settings&quot;:{&quot;animation&quot;:&quot;yes&quot;,&quot;animation_intime&quot;:200,&quot;animation_outtime&quot;:200,&quot;conditions_ui&quot;:&quot;normal&quot;,&quot;notice_dismissed&quot;:false,&quot;notice_dismissed_update-cf7-5.9.8&quot;:true,&quot;notice_dismissed_update-cf7-6.1.1&quot;:true}}\" \/>\n<\/fieldset>\n<p><span class=\"wpcf7-form-control-wrap\" data-name=\"full_name\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Name\" value=\"\" type=\"text\" name=\"full_name\" \/><\/span><br \/>\n<span class=\"wpcf7-form-control-wrap\" data-name=\"phone\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-tel wpcf7-validates-as-required wpcf7-text wpcf7-validates-as-tel\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Phone\" value=\"\" type=\"tel\" name=\"phone\" \/><\/span><br \/>\n<span class=\"wpcf7-form-control-wrap\" data-name=\"email_id\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-email wpcf7-text wpcf7-validates-as-email\" aria-invalid=\"false\" placeholder=\"Email\" value=\"\" type=\"email\" name=\"email_id\" \/><\/span>\n<\/p>\n<div class=\"custom-form-group-1\">\n\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"language\"><select class=\"wpcf7-form-control wpcf7-select wpcf7-validates-as-required language-select1\" aria-required=\"true\" aria-invalid=\"false\" name=\"language\"><option value=\"\">Select Language<\/option><option value=\"Malayalam\">Malayalam<\/option><option value=\"Tamil\">Tamil<\/option><option value=\"Telugu\">Telugu<\/option><option value=\"Kannada\">Kannada<\/option><\/select><\/span>\n\t<\/p>\n<\/div>\n<div class=\"custom-form-group-1\">\n\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"course\"><select class=\"wpcf7-form-control wpcf7-select wpcf7-validates-as-required course-select1\" aria-required=\"true\" aria-invalid=\"false\" name=\"course\"><option value=\"\">Select an option<\/option><option value=\"Kerala PSC Exams\">Kerala PSC Exams<\/option><option value=\"Kerala PSC Teaching Exams\">Kerala PSC Teaching Exams<\/option><option value=\"Kerala PSC Technical Exams\">Kerala PSC Technical Exams<\/option><option value=\"SSC\/RRB\">SSC\/RRB<\/option><option value=\"GATE\">GATE<\/option><option value=\"Banking &amp; Insurance\">Banking &amp; Insurance<\/option><option value=\"Coding\">Coding<\/option><option value=\"Commerce\">Commerce<\/option><option value=\"Personal Finance\">Personal Finance<\/option><option value=\"Spoken English\/Personality Dev\">Spoken English\/Personality Dev<\/option><option value=\"German Language\">German Language<\/option><option value=\"Montessori Teacher Training\">Montessori Teacher Training<\/option><option value=\"IELTS\">IELTS<\/option><option value=\"MEP\">MEP<\/option><option value=\"Quantity Surveying\">Quantity Surveying<\/option><option value=\"Structural Design\">Structural Design<\/option><option value=\"Yoga TTC\">Yoga TTC<\/option><option value=\"Digital Marketing\">Digital Marketing<\/option><option value=\"Hospital and Healthcare Administration\">Hospital and Healthcare Administration<\/option><option value=\"BIM\">BIM<\/option><option value=\"HR Management\">HR Management<\/option><option value=\"Embedded System Software Engineering\">Embedded System Software Engineering<\/option><\/select><\/span>\n\t<\/p>\n<\/div>\n<div class=\"custom-form-group-1\">\n\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"course_name\"><select class=\"wpcf7-form-control wpcf7-select wpcf7-validates-as-required course-name-select1\" aria-required=\"true\" aria-invalid=\"false\" name=\"course_name\"><option value=\"\">Select an option<\/option><option value=\"KAS\">KAS<\/option><option value=\"Degree level\">Degree level<\/option><option value=\"12th level\">12th level<\/option><option value=\"10th level\">10th level<\/option><option value=\"Secretariat Assistant\">Secretariat Assistant<\/option><option value=\"LDC\">LDC<\/option><option value=\"LGS\">LGS<\/option><option value=\"University Assistant\">University Assistant<\/option><option value=\"FSO\">FSO<\/option><option value=\"VEO\">VEO<\/option><option value=\"VFA\">VFA<\/option><option value=\"Dental Surgeon\">Dental Surgeon<\/option><option value=\"Staff Nurse\">Staff Nurse<\/option><option value=\"Sub Inspector\">Sub Inspector<\/option><option value=\"Divisional Accountant\">Divisional Accountant<\/option><option value=\"Fireman\/Firewomen\/Driver\">Fireman\/Firewomen\/Driver<\/option><option value=\"CPO\/WCPO\/Driver\">CPO\/WCPO\/Driver<\/option><option value=\"Excise\">Excise<\/option><option value=\"LD Typist\">LD Typist<\/option><option value=\"Junior Health Inspector\">Junior Health Inspector<\/option><option value=\"Assistant Jailor\">Assistant Jailor<\/option><option value=\"Kerala High Court Assistant\">Kerala High Court Assistant<\/option><option value=\"Beat Forest Officer\">Beat Forest Officer<\/option><option value=\"Junior Employment Officer\">Junior Employment Officer<\/option><option value=\"Junior Lab Assistant\">Junior Lab Assistant<\/option><option value=\"Dewaswom Board LDC\">Dewaswom Board LDC<\/option><option value=\"LSGS\">LSGS<\/option><option value=\"SBCID\">SBCID<\/option><option value=\"IRB Regular wing\">IRB Regular wing<\/option><option value=\"Assistant Salesman\">Assistant Salesman<\/option><option value=\"Secretariat OA\">Secretariat OA<\/option><option value=\"Driver Cum OA\">Driver Cum OA<\/option><option value=\"Departmental Test\">Departmental Test<\/option><option value=\"HSST\">HSST<\/option><option value=\"HSA\">HSA<\/option><option value=\"SET\">SET<\/option><option value=\"KTET\">KTET<\/option><option value=\"LP UP\">LP UP<\/option><option value=\"KVS\">KVS<\/option><option value=\"Finger Print Searcher\">Finger Print Searcher<\/option><option value=\"Nursery School Teacher\">Nursery School Teacher<\/option><option value=\"Railway Teacher\">Railway Teacher<\/option><option value=\"Scientific Officer\">Scientific Officer<\/option><option value=\"Probation Officer\">Probation Officer<\/option><option value=\"ICDS\">ICDS<\/option><option value=\"Welfare Officer Gr. II\">Welfare Officer Gr. II<\/option><option value=\"Assistant Professor\">Assistant Professor<\/option><option value=\"CTET\">CTET<\/option><option value=\"UGC NET\">UGC NET<\/option><option value=\"Sanitary Chemist\">Sanitary Chemist<\/option><option value=\"AE\">AE<\/option><option value=\"IEO\">IEO<\/option><option value=\"Electrician\">Electrician<\/option><option value=\"KSEB AE\/Sub Engineer\">KSEB AE\/Sub Engineer<\/option><option value=\"Kerala Agro Industries AE\">Kerala Agro Industries AE<\/option><option value=\"Overseer\/Draftsman\">Overseer\/Draftsman<\/option><option value=\"Lecturer in Polytechnic\">Lecturer in Polytechnic<\/option><option value=\"LSGD AE\">LSGD AE<\/option><option value=\"Devaswom Work Superintendent\">Devaswom Work Superintendent<\/option><option value=\"Devaswom Board Lineman\">Devaswom Board Lineman<\/option><option value=\"Devaswom Board Plumber\">Devaswom Board Plumber<\/option><option value=\"Assistant Town Planner\">Assistant Town Planner<\/option><option value=\"AAI ATC\">AAI ATC<\/option><option value=\"Central Govt PSU\">Central Govt PSU<\/option><option value=\"RRB ALP\">RRB ALP<\/option><option value=\"RRB JE\">RRB JE<\/option><option value=\"GATE\">GATE<\/option><option value=\"Skilled Assistant\">Skilled Assistant<\/option><option value=\"Workshop Instructor\">Workshop Instructor<\/option><option value=\"AMVI\">AMVI<\/option><option value=\"Technician gr 1\">Technician gr 1<\/option><option value=\"Technician gr 3\">Technician gr 3<\/option><option value=\"Assistant Professor - Tech\">Assistant Professor - Tech<\/option><option value=\"KSEB Worker\">KSEB Worker<\/option><option value=\"SSC CGL\">SSC CGL<\/option><option value=\"SSC CHSL\">SSC CHSL<\/option><option value=\"SSC CPO\">SSC CPO<\/option><option value=\"SSC MTS\">SSC MTS<\/option><option value=\"SSC GD Constable\">SSC GD Constable<\/option><option value=\"SSC JE\">SSC JE<\/option><option value=\"SSC Stenographer\">SSC Stenographer<\/option><option value=\"SSC JHT\">SSC JHT<\/option><option value=\"SSC Selection Post\">SSC Selection Post<\/option><option value=\"SSC Scientific Assistant IMD\">SSC Scientific Assistant IMD<\/option><option value=\"SSC Phase IX\/XI Selection Posts\">SSC Phase IX\/XI Selection Posts<\/option><option value=\"RRB NTPC\">RRB NTPC<\/option><option value=\"RRB Group D\">RRB Group D<\/option><option value=\"RRB Paramedical\">RRB Paramedical<\/option><option value=\"RRB Ministerial and Isolated Categories\">RRB Ministerial and Isolated Categories<\/option><option value=\"RRB RPF\">RRB RPF<\/option><option value=\"IBPS PO\">IBPS PO<\/option><option value=\"IBPS Clerk\">IBPS Clerk<\/option><option value=\"IBPS SO\">IBPS SO<\/option><option value=\"IBPS RRB PO\">IBPS RRB PO<\/option><option value=\"IBPS RRB Clerk\">IBPS RRB Clerk<\/option><option value=\"SBI PO\">SBI PO<\/option><option value=\"SBI Clerk\">SBI Clerk<\/option><option value=\"SBI SO\">SBI SO<\/option><option value=\"RBI Grade B\">RBI Grade B<\/option><option value=\"RBI Assistant\">RBI Assistant<\/option><option value=\"NABARD Grade A\">NABARD Grade A<\/option><option value=\"NABARD Grade B\">NABARD Grade B<\/option><option value=\"SIDBI Grade A\">SIDBI Grade A<\/option><option value=\"Insurance Exams\">Insurance Exams<\/option><option value=\"Federal Bank Exams\">Federal Bank Exams<\/option><option value=\"Union Bank of India Exams\">Union Bank of India Exams<\/option><option value=\"Full Stack Development Course\">Full Stack Development Course<\/option><option value=\"Data Science Course\">Data Science Course<\/option><option value=\"Data Analytics Course\">Data Analytics Course<\/option><option value=\"Software Testing Course\">Software Testing Course<\/option><option value=\"Python Programming Course\">Python Programming Course<\/option><option value=\"UI\/UX\">UI\/UX<\/option><option value=\"AWS Course\">AWS Course<\/option><option value=\"Flutter\">Flutter<\/option><option value=\"Cybersecurity\">Cybersecurity<\/option><option value=\"Practical Accounting Course\">Practical Accounting Course<\/option><option value=\"SAP FICO Course\">SAP FICO Course<\/option><option value=\"SAP MM Course\">SAP MM Course<\/option><option value=\"SAP SD Course\">SAP SD Course<\/option><option value=\"PwC Edge: Strategic Accounting &amp; Finance Programme\">PwC Edge: Strategic Accounting &amp; Finance Programme<\/option><option value=\"ACCA\">ACCA<\/option><option value=\"Tally\">Tally<\/option><option value=\"UAE Accounting\">UAE Accounting<\/option><option value=\"GST\">GST<\/option><option value=\"Stock Market Course\">Stock Market Course<\/option><option value=\"Mutual Funds\">Mutual Funds<\/option><option value=\"Forex Trading\">Forex Trading<\/option><option value=\"Kerala PSC Exams\">Kerala PSC Exams<\/option><option value=\"Kerala PSC Teaching Exams\">Kerala PSC Teaching Exams<\/option><option value=\"Kerala PSC Technical Exams\">Kerala PSC Technical Exams<\/option><option value=\"SSC\/RRB\">SSC\/RRB<\/option><option value=\"GATE\">GATE<\/option><option value=\"Banking &amp; Insurance\">Banking &amp; Insurance<\/option><option value=\"Coding\">Coding<\/option><option value=\"Commerce\">Commerce<\/option><option value=\"Personal Finance\">Personal Finance<\/option><option value=\"Spoken English\/Personality Dev\">Spoken English\/Personality Dev<\/option><option value=\"German Language\">German Language<\/option><option value=\"Montessori Teacher Training\">Montessori Teacher Training<\/option><option value=\"IELTS\">IELTS<\/option><option value=\"MEP\">MEP<\/option><option value=\"Quantity Surveying\">Quantity Surveying<\/option><option value=\"Structural Design\">Structural Design<\/option><option value=\"Yoga TTC\">Yoga TTC<\/option><option value=\"Digital Marketing\">Digital Marketing<\/option><option value=\"Hospital and Healthcare Administration\">Hospital and Healthcare Administration<\/option><option value=\"BIM\">BIM<\/option><option value=\"HR Management\">HR Management<\/option><option value=\"Embedded System Software Engineering\">Embedded System Software Engineering<\/option><\/select><\/span>\n\t<\/p>\n<\/div>\n<p><span class=\"wpcf7-form-control-wrap\" data-name=\"education\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Educational qualification\" value=\"\" type=\"text\" name=\"education\" \/><\/span>\n<\/p>\n<div style=\"display:none\">\n<input class=\"wpcf7-form-control wpcf7-hidden utm-source\" value=\"\" type=\"hidden\" name=\"utm_source\" \/>\n<input class=\"wpcf7-form-control wpcf7-hidden utm-medium\" value=\"\" type=\"hidden\" name=\"utm_medium\" \/>\n<input class=\"wpcf7-form-control wpcf7-hidden utm-campaign\" value=\"\" type=\"hidden\" name=\"utm_campaign\" \/>\n<input class=\"wpcf7-form-control wpcf7-hidden utm-content\" value=\"\" type=\"hidden\" name=\"utm_content\" \/>\n<input class=\"wpcf7-form-control wpcf7-hidden utm-term\" value=\"\" type=\"hidden\" name=\"utm_term\" \/>\n<input class=\"wpcf7-form-control wpcf7-hidden blog-url\" value=\"\" type=\"hidden\" name=\"blog_url\" \/>\n<input class=\"wpcf7-form-control wpcf7-hidden post-category-name\" value=\"\" type=\"hidden\" name=\"post_category_name\" \/>\n<input class=\"wpcf7-form-control wpcf7-hidden post-author-name\" value=\"\" type=\"hidden\" name=\"post_author_name\" \/>\n<input class=\"wpcf7-form-control wpcf7-hidden file-url\" value=\"\" type=\"hidden\" name=\"file_url\" \/>\n<input class=\"wpcf7-form-control wpcf7-hidden video-url\" value=\"\" type=\"hidden\" name=\"video_url\" \/>\n<input class=\"wpcf7-form-control wpcf7-hidden courseid\" value=\"\" type=\"hidden\" name=\"course_id\" \/>\n<\/div>\n<div class=\"cf7-cf-turnstile\" style=\"margin-top: 0px; margin-bottom: -15px;\"> <div id=\"cf-turnstile-cf7-3410670993\" class=\"cf-turnstile\" data-sitekey=\"0x4AAAAAABVigxtkiZeGTu5L\" data-theme=\"light\" data-language=\"auto\" data-size=\"normal\" data-retry=\"auto\" data-retry-interval=\"1000\" data-action=\"contact-form-7\" data-appearance=\"always\"><\/div> <script>document.addEventListener(\"DOMContentLoaded\", function() { setTimeout(function(){ var e=document.getElementById(\"cf-turnstile-cf7-3410670993\"); e&&!e.innerHTML.trim()&&(turnstile.remove(\"#cf-turnstile-cf7-3410670993\"), turnstile.render(\"#cf-turnstile-cf7-3410670993\", {sitekey:\"0x4AAAAAABVigxtkiZeGTu5L\"})); }, 0); });<\/script> <br class=\"cf-turnstile-br cf-turnstile-br-cf7-3410670993\"> <style>#cf-turnstile-cf7-3410670993 { margin-left: -15px; }<\/style> <script>document.addEventListener(\"DOMContentLoaded\",function(){document.querySelectorAll('.wpcf7-form').forEach(function(e){e.addEventListener('submit',function(){if(document.getElementById('cf-turnstile-cf7-3410670993')){setTimeout(function(){turnstile.reset('#cf-turnstile-cf7-3410670993');},1000)}})})});<\/script> <\/div><br\/><input class=\"wpcf7-form-control wpcf7-submit has-spinner\" type=\"submit\" value=\"Submit\" \/>\n<\/p><div class=\"wpcf7-response-output\" aria-hidden=\"true\"><\/div>\n<\/form>\n<\/div>\n\n<\/div><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A versatile and powerful language, Python provides various element types such as list and tuple. Each of these elements has its own unique properties and functions. Let&#8217;s dive deeper into understanding each of these elements. Lists and tuples are the two basic classes of data structures in Python. Although they may seem similar, they have [&hellip;]<\/p>\n","protected":false},"author":92,"featured_media":25571486,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[802,1888],"tags":[],"class_list":["post-25571471","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-python-programming"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is the Difference Between List and Tuple in Python?<\/title>\n<meta name=\"description\" content=\"Explore the fundamental differences between lists and tuples in Python and enhance your coding skills with Entri Elevate!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is the Difference Between List and Tuple in Python?\" \/>\n<meta property=\"og:description\" content=\"Explore the fundamental differences between lists and tuples in Python and enhance your coding skills with Entri Elevate!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Entri Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/entri.me\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-12T04:30:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-29T13:08:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2023\/12\/Difference-Between-List-and-Tuple-in-Python.png\" \/>\n\t<meta property=\"og:image:width\" content=\"820\" \/>\n\t<meta property=\"og:image:height\" content=\"615\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Aleena V Noushad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@entri_app\" \/>\n<meta name=\"twitter:site\" content=\"@entri_app\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aleena V Noushad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"14 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/\"},\"author\":{\"name\":\"Aleena V Noushad\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/282abb73bf1e2468d08cf486d1f075e2\"},\"headline\":\"Difference Between List and Tuple in Python\",\"datePublished\":\"2023-12-12T04:30:55+00:00\",\"dateModified\":\"2023-12-29T13:08:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/\"},\"wordCount\":2808,\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2023\/12\/Difference-Between-List-and-Tuple-in-Python.png\",\"articleSection\":[\"Articles\",\"Python Programming\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/\",\"url\":\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/\",\"name\":\"What is the Difference Between List and Tuple in Python?\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2023\/12\/Difference-Between-List-and-Tuple-in-Python.png\",\"datePublished\":\"2023-12-12T04:30:55+00:00\",\"dateModified\":\"2023-12-29T13:08:06+00:00\",\"description\":\"Explore the fundamental differences between lists and tuples in Python and enhance your coding skills with Entri Elevate!\",\"breadcrumb\":{\"@id\":\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#primaryimage\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2023\/12\/Difference-Between-List-and-Tuple-in-Python.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2023\/12\/Difference-Between-List-and-Tuple-in-Python.png\",\"width\":820,\"height\":615,\"caption\":\"Difference Between List and Tuple in Python\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/entri.app\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Programming\",\"item\":\"https:\/\/entri.app\/blog\/category\/python-programming\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Difference Between List and Tuple in Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/entri.app\/blog\/#website\",\"url\":\"https:\/\/entri.app\/blog\/\",\"name\":\"Entri Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/entri.app\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/entri.app\/blog\/#organization\",\"name\":\"Entri App\",\"url\":\"https:\/\/entri.app\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"width\":989,\"height\":446,\"caption\":\"Entri App\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/entri.me\/\",\"https:\/\/x.com\/entri_app\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/282abb73bf1e2468d08cf486d1f075e2\",\"name\":\"Aleena V Noushad\",\"description\":\"Aleena is a passionate Blog writer and a Postgraduate in Master of Computer Application. She also holds a diploma in Aviation and Hospitality. She has been writing for Entri over the past three years, specialising in exam preparation and skill and career development\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/aleena-v-noushad-a81632126\/\"],\"url\":\"https:\/\/entri.app\/blog\/author\/aleena\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is the Difference Between List and Tuple in Python?","description":"Explore the fundamental differences between lists and tuples in Python and enhance your coding skills with Entri Elevate!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/","og_locale":"en_US","og_type":"article","og_title":"What is the Difference Between List and Tuple in Python?","og_description":"Explore the fundamental differences between lists and tuples in Python and enhance your coding skills with Entri Elevate!","og_url":"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/","og_site_name":"Entri Blog","article_publisher":"https:\/\/www.facebook.com\/entri.me\/","article_published_time":"2023-12-12T04:30:55+00:00","article_modified_time":"2023-12-29T13:08:06+00:00","og_image":[{"width":820,"height":615,"url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2023\/12\/Difference-Between-List-and-Tuple-in-Python.png","type":"image\/png"}],"author":"Aleena V Noushad","twitter_card":"summary_large_image","twitter_creator":"@entri_app","twitter_site":"@entri_app","twitter_misc":{"Written by":"Aleena V Noushad","Est. reading time":"14 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#article","isPartOf":{"@id":"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/"},"author":{"name":"Aleena V Noushad","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/282abb73bf1e2468d08cf486d1f075e2"},"headline":"Difference Between List and Tuple in Python","datePublished":"2023-12-12T04:30:55+00:00","dateModified":"2023-12-29T13:08:06+00:00","mainEntityOfPage":{"@id":"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/"},"wordCount":2808,"publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"image":{"@id":"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2023\/12\/Difference-Between-List-and-Tuple-in-Python.png","articleSection":["Articles","Python Programming"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/","url":"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/","name":"What is the Difference Between List and Tuple in Python?","isPartOf":{"@id":"https:\/\/entri.app\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#primaryimage"},"image":{"@id":"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2023\/12\/Difference-Between-List-and-Tuple-in-Python.png","datePublished":"2023-12-12T04:30:55+00:00","dateModified":"2023-12-29T13:08:06+00:00","description":"Explore the fundamental differences between lists and tuples in Python and enhance your coding skills with Entri Elevate!","breadcrumb":{"@id":"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#primaryimage","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2023\/12\/Difference-Between-List-and-Tuple-in-Python.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2023\/12\/Difference-Between-List-and-Tuple-in-Python.png","width":820,"height":615,"caption":"Difference Between List and Tuple in Python"},{"@type":"BreadcrumbList","@id":"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/entri.app\/blog\/"},{"@type":"ListItem","position":2,"name":"Python Programming","item":"https:\/\/entri.app\/blog\/category\/python-programming\/"},{"@type":"ListItem","position":3,"name":"Difference Between List and Tuple in Python"}]},{"@type":"WebSite","@id":"https:\/\/entri.app\/blog\/#website","url":"https:\/\/entri.app\/blog\/","name":"Entri Blog","description":"","publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/entri.app\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/entri.app\/blog\/#organization","name":"Entri App","url":"https:\/\/entri.app\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","width":989,"height":446,"caption":"Entri App"},"image":{"@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/entri.me\/","https:\/\/x.com\/entri_app"]},{"@type":"Person","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/282abb73bf1e2468d08cf486d1f075e2","name":"Aleena V Noushad","description":"Aleena is a passionate Blog writer and a Postgraduate in Master of Computer Application. She also holds a diploma in Aviation and Hospitality. She has been writing for Entri over the past three years, specialising in exam preparation and skill and career development","sameAs":["https:\/\/www.linkedin.com\/in\/aleena-v-noushad-a81632126\/"],"url":"https:\/\/entri.app\/blog\/author\/aleena\/"}]}},"_links":{"self":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25571471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/users\/92"}],"replies":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/comments?post=25571471"}],"version-history":[{"count":11,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25571471\/revisions"}],"predecessor-version":[{"id":25573271,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25571471\/revisions\/25573271"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media\/25571486"}],"wp:attachment":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media?parent=25571471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/categories?post=25571471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/tags?post=25571471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}