[{"data":1,"prerenderedAt":2144},["ShallowReactive",2],{"doc-\u002Freference\u002Fpython-list-creating-a-list":3},{"id":4,"title":5,"body":6,"description":2137,"extension":2138,"meta":2139,"navigation":149,"path":2140,"seo":2141,"stem":2142,"__hash__":2143},"content\u002Freference\u002Fpython-list-creating-a-list.md","Python List: Creating a List",{"type":7,"value":8,"toc":2100},"minimark",[9,13,17,22,202,208,296,311,315,337,341,344,347,365,368,417,421,446,458,462,467,470,590,594,663,668,682,686,689,734,738,752,755,841,845,878,888,894,899,902,917,921,954,958,991,995,1033,1037,1058,1062,1099,1103,1135,1146,1150,1153,1156,1172,1233,1237,1276,1282,1285,1289,1292,1296,1299,1326,1329,1354,1364,1367,1414,1418,1442,1445,1484,1492,1497,1533,1537,1639,1646,1683,1687,1713,1717,1720,1758,1761,1798,1802,1805,1824,1828,1891,1894,1913,1917,1920,1923,1958,1962,1966,1969,1977,1981,1984,2004,2011,2017,2021,2024,2034,2042,2046,2090,2096],[10,11,5],"h1",{"id":12},"python-list-creating-a-list",[14,15,16],"p",{},"A Python list is one of the most common data structures you will use. This page shows the main ways to create a list, what list syntax looks like, and when each approach is useful.",[18,19,21],"h2",{"id":20},"quick-answer","Quick answer",[23,24,29],"pre",{"className":25,"code":26,"language":27,"meta":28,"style":28},"language-python shiki shiki-themes material-theme-lighter github-light github-dark","numbers = [1, 2, 3]\nnames = [\"Ana\", \"Ben\", \"Cara\"]\nempty_list = []\nletters = list(\"abc\")\n\nprint(numbers)\nprint(names)\nprint(empty_list)\nprint(letters)\n","python","",[30,31,32,67,108,119,144,151,166,178,190],"code",{"__ignoreMap":28},[33,34,37,41,45,49,53,56,59,61,64],"span",{"class":35,"line":36},"line",1,[33,38,40],{"class":39},"su5hD","numbers ",[33,42,44],{"class":43},"smGrS","=",[33,46,48],{"class":47},"sP7_E"," [",[33,50,52],{"class":51},"srdBf","1",[33,54,55],{"class":47},",",[33,57,58],{"class":51}," 2",[33,60,55],{"class":47},[33,62,63],{"class":51}," 3",[33,65,66],{"class":47},"]\n",[33,68,70,73,75,77,81,85,87,89,92,95,97,99,101,104,106],{"class":35,"line":69},2,[33,71,72],{"class":39},"names ",[33,74,44],{"class":43},[33,76,48],{"class":47},[33,78,80],{"class":79},"sjJ54","\"",[33,82,84],{"class":83},"s_sjI","Ana",[33,86,80],{"class":79},[33,88,55],{"class":47},[33,90,91],{"class":79}," \"",[33,93,94],{"class":83},"Ben",[33,96,80],{"class":79},[33,98,55],{"class":47},[33,100,91],{"class":79},[33,102,103],{"class":83},"Cara",[33,105,80],{"class":79},[33,107,66],{"class":47},[33,109,111,114,116],{"class":35,"line":110},3,[33,112,113],{"class":39},"empty_list ",[33,115,44],{"class":43},[33,117,118],{"class":47}," []\n",[33,120,122,125,127,131,134,136,139,141],{"class":35,"line":121},4,[33,123,124],{"class":39},"letters ",[33,126,44],{"class":43},[33,128,130],{"class":129},"sZMiF"," list",[33,132,133],{"class":47},"(",[33,135,80],{"class":79},[33,137,138],{"class":83},"abc",[33,140,80],{"class":79},[33,142,143],{"class":47},")\n",[33,145,147],{"class":35,"line":146},5,[33,148,150],{"emptyLinePlaceholder":149},true,"\n",[33,152,154,158,160,164],{"class":35,"line":153},6,[33,155,157],{"class":156},"sptTA","print",[33,159,133],{"class":47},[33,161,163],{"class":162},"slqww","numbers",[33,165,143],{"class":47},[33,167,169,171,173,176],{"class":35,"line":168},7,[33,170,157],{"class":156},[33,172,133],{"class":47},[33,174,175],{"class":162},"names",[33,177,143],{"class":47},[33,179,181,183,185,188],{"class":35,"line":180},8,[33,182,157],{"class":156},[33,184,133],{"class":47},[33,186,187],{"class":162},"empty_list",[33,189,143],{"class":47},[33,191,193,195,197,200],{"class":35,"line":192},9,[33,194,157],{"class":156},[33,196,133],{"class":47},[33,198,199],{"class":162},"letters",[33,201,143],{"class":47},[14,203,204],{},[205,206,207],"strong",{},"Output:",[23,209,211],{"className":25,"code":210,"language":27,"meta":28,"style":28},"[1, 2, 3]\n['Ana', 'Ben', 'Cara']\n[]\n['a', 'b', 'c']\n",[30,212,213,230,260,265],{"__ignoreMap":28},[33,214,215,218,220,222,224,226,228],{"class":35,"line":36},[33,216,217],{"class":47},"[",[33,219,52],{"class":51},[33,221,55],{"class":47},[33,223,58],{"class":51},[33,225,55],{"class":47},[33,227,63],{"class":51},[33,229,66],{"class":47},[33,231,232,234,237,239,241,243,246,248,250,252,254,256,258],{"class":35,"line":69},[33,233,217],{"class":47},[33,235,236],{"class":79},"'",[33,238,84],{"class":83},[33,240,236],{"class":79},[33,242,55],{"class":47},[33,244,245],{"class":79}," '",[33,247,94],{"class":83},[33,249,236],{"class":79},[33,251,55],{"class":47},[33,253,245],{"class":79},[33,255,103],{"class":83},[33,257,236],{"class":79},[33,259,66],{"class":47},[33,261,262],{"class":35,"line":110},[33,263,264],{"class":47},"[]\n",[33,266,267,269,271,274,276,278,280,283,285,287,289,292,294],{"class":35,"line":121},[33,268,217],{"class":47},[33,270,236],{"class":79},[33,272,273],{"class":83},"a",[33,275,236],{"class":79},[33,277,55],{"class":47},[33,279,245],{"class":79},[33,281,282],{"class":83},"b",[33,284,236],{"class":79},[33,286,55],{"class":47},[33,288,245],{"class":79},[33,290,291],{"class":83},"c",[33,293,236],{"class":79},[33,295,66],{"class":47},[14,297,298,299,302,303,306,307,310],{},"Use square brackets ",[30,300,301],{},"[]"," for most lists. Use ",[30,304,305],{},"list()"," when converting another iterable, such as a string, tuple, or ",[30,308,309],{},"range()",".",[18,312,314],{"id":313},"what-this-page-covers","What this page covers",[316,317,318,322,325,328,334],"ul",{},[319,320,321],"li",{},"What a list is in Python",[319,323,324],{},"How to create a list with square brackets",[319,326,327],{},"How to create an empty list",[319,329,330,331,333],{},"How to create a list with the ",[30,332,305],{}," function",[319,335,336],{},"What kinds of values a list can store",[18,338,340],{"id":339},"what-a-python-list-is","What a Python list is",[14,342,343],{},"A list is an ordered collection of items.",[14,345,346],{},"This means:",[316,348,349,352,355,358],{},[319,350,351],{},"A list can contain one item or many items",[319,353,354],{},"The order of items is kept",[319,356,357],{},"A list can hold different data types",[319,359,360,361,364],{},"A list is ",[205,362,363],{},"mutable",", which means you can change it after creating it",[14,366,367],{},"Example:",[23,369,371],{"className":25,"code":370,"language":27,"meta":28,"style":28},"items = [\"apple\", 10, True]\n\nprint(items)\n",[30,372,373,402,406],{"__ignoreMap":28},[33,374,375,378,380,382,384,387,389,391,394,396,400],{"class":35,"line":36},[33,376,377],{"class":39},"items ",[33,379,44],{"class":43},[33,381,48],{"class":47},[33,383,80],{"class":79},[33,385,386],{"class":83},"apple",[33,388,80],{"class":79},[33,390,55],{"class":47},[33,392,393],{"class":51}," 10",[33,395,55],{"class":47},[33,397,399],{"class":398},"s39Yj"," True",[33,401,66],{"class":47},[33,403,404],{"class":35,"line":69},[33,405,150],{"emptyLinePlaceholder":149},[33,407,408,410,412,415],{"class":35,"line":110},[33,409,157],{"class":156},[33,411,133],{"class":47},[33,413,414],{"class":162},"items",[33,416,143],{"class":47},[14,418,419],{},[205,420,207],{},[23,422,424],{"className":25,"code":423,"language":27,"meta":28,"style":28},"['apple', 10, True]\n",[30,425,426],{"__ignoreMap":28},[33,427,428,430,432,434,436,438,440,442,444],{"class":35,"line":36},[33,429,217],{"class":47},[33,431,236],{"class":79},[33,433,386],{"class":83},[33,435,236],{"class":79},[33,437,55],{"class":47},[33,439,393],{"class":51},[33,441,55],{"class":47},[33,443,399],{"class":398},[33,445,66],{"class":47},[14,447,448,449,453,454,310],{},"If you want a broader introduction, see ",[273,450,452],{"href":451},"\u002Flearn\u002Fpython-lists-explained-beginner-guide\u002F","Python Lists Explained for Beginners"," or ",[273,455,457],{"href":456},"\u002Fglossary\u002Fwhat-is-a-list-in-python\u002F","What is a List in Python?",[18,459,461],{"id":460},"create-a-list-with-square-brackets","Create a list with square brackets",[14,463,298,464,466],{},[30,465,301],{}," to create a list. Put items inside the brackets and separate them with commas.",[14,468,469],{},"This is the most common way to create a list.",[23,471,473],{"className":25,"code":472,"language":27,"meta":28,"style":28},"numbers = [1, 2, 3]\nnames = [\"Ana\", \"Ben\", \"Cara\"]\nmixed = [10, \"hello\", False]\n\nprint(numbers)\nprint(names)\nprint(mixed)\n",[30,474,475,495,527,555,559,569,579],{"__ignoreMap":28},[33,476,477,479,481,483,485,487,489,491,493],{"class":35,"line":36},[33,478,40],{"class":39},[33,480,44],{"class":43},[33,482,48],{"class":47},[33,484,52],{"class":51},[33,486,55],{"class":47},[33,488,58],{"class":51},[33,490,55],{"class":47},[33,492,63],{"class":51},[33,494,66],{"class":47},[33,496,497,499,501,503,505,507,509,511,513,515,517,519,521,523,525],{"class":35,"line":69},[33,498,72],{"class":39},[33,500,44],{"class":43},[33,502,48],{"class":47},[33,504,80],{"class":79},[33,506,84],{"class":83},[33,508,80],{"class":79},[33,510,55],{"class":47},[33,512,91],{"class":79},[33,514,94],{"class":83},[33,516,80],{"class":79},[33,518,55],{"class":47},[33,520,91],{"class":79},[33,522,103],{"class":83},[33,524,80],{"class":79},[33,526,66],{"class":47},[33,528,529,532,534,536,539,541,543,546,548,550,553],{"class":35,"line":110},[33,530,531],{"class":39},"mixed ",[33,533,44],{"class":43},[33,535,48],{"class":47},[33,537,538],{"class":51},"10",[33,540,55],{"class":47},[33,542,91],{"class":79},[33,544,545],{"class":83},"hello",[33,547,80],{"class":79},[33,549,55],{"class":47},[33,551,552],{"class":398}," False",[33,554,66],{"class":47},[33,556,557],{"class":35,"line":121},[33,558,150],{"emptyLinePlaceholder":149},[33,560,561,563,565,567],{"class":35,"line":146},[33,562,157],{"class":156},[33,564,133],{"class":47},[33,566,163],{"class":162},[33,568,143],{"class":47},[33,570,571,573,575,577],{"class":35,"line":153},[33,572,157],{"class":156},[33,574,133],{"class":47},[33,576,175],{"class":162},[33,578,143],{"class":47},[33,580,581,583,585,588],{"class":35,"line":168},[33,582,157],{"class":156},[33,584,133],{"class":47},[33,586,587],{"class":162},"mixed",[33,589,143],{"class":47},[14,591,592],{},[205,593,207],{},[23,595,597],{"className":25,"code":596,"language":27,"meta":28,"style":28},"[1, 2, 3]\n['Ana', 'Ben', 'Cara']\n[10, 'hello', False]\n",[30,598,599,615,643],{"__ignoreMap":28},[33,600,601,603,605,607,609,611,613],{"class":35,"line":36},[33,602,217],{"class":47},[33,604,52],{"class":51},[33,606,55],{"class":47},[33,608,58],{"class":51},[33,610,55],{"class":47},[33,612,63],{"class":51},[33,614,66],{"class":47},[33,616,617,619,621,623,625,627,629,631,633,635,637,639,641],{"class":35,"line":69},[33,618,217],{"class":47},[33,620,236],{"class":79},[33,622,84],{"class":83},[33,624,236],{"class":79},[33,626,55],{"class":47},[33,628,245],{"class":79},[33,630,94],{"class":83},[33,632,236],{"class":79},[33,634,55],{"class":47},[33,636,245],{"class":79},[33,638,103],{"class":83},[33,640,236],{"class":79},[33,642,66],{"class":47},[33,644,645,647,649,651,653,655,657,659,661],{"class":35,"line":110},[33,646,217],{"class":47},[33,648,538],{"class":51},[33,650,55],{"class":47},[33,652,245],{"class":79},[33,654,545],{"class":83},[33,656,236],{"class":79},[33,658,55],{"class":47},[33,660,552],{"class":398},[33,662,66],{"class":47},[664,665,667],"h3",{"id":666},"key-points","Key points",[316,669,670,676,679],{},[319,671,672,673,675],{},"Use ",[30,674,301],{}," to make a new list",[319,677,678],{},"Separate items with commas",[319,680,681],{},"Works with numbers, strings, booleans, and mixed values",[18,683,685],{"id":684},"create-an-empty-list","Create an empty list",[14,687,688],{},"Use empty square brackets when you want a blank list.",[23,690,692],{"className":25,"code":691,"language":27,"meta":28,"style":28},"my_list = []\n\nprint(my_list)\nprint(len(my_list))\n",[30,693,694,703,707,718],{"__ignoreMap":28},[33,695,696,699,701],{"class":35,"line":36},[33,697,698],{"class":39},"my_list ",[33,700,44],{"class":43},[33,702,118],{"class":47},[33,704,705],{"class":35,"line":69},[33,706,150],{"emptyLinePlaceholder":149},[33,708,709,711,713,716],{"class":35,"line":110},[33,710,157],{"class":156},[33,712,133],{"class":47},[33,714,715],{"class":162},"my_list",[33,717,143],{"class":47},[33,719,720,722,724,727,729,731],{"class":35,"line":121},[33,721,157],{"class":156},[33,723,133],{"class":47},[33,725,726],{"class":156},"len",[33,728,133],{"class":47},[33,730,715],{"class":162},[33,732,733],{"class":47},"))\n",[14,735,736],{},[205,737,207],{},[23,739,741],{"className":25,"code":740,"language":27,"meta":28,"style":28},"[]\n0\n",[30,742,743,747],{"__ignoreMap":28},[33,744,745],{"class":35,"line":36},[33,746,264],{"class":47},[33,748,749],{"class":35,"line":69},[33,750,751],{"class":51},"0\n",[14,753,754],{},"An empty list is useful when you want to build a list step by step.",[23,756,758],{"className":25,"code":757,"language":27,"meta":28,"style":28},"names = []\n\nnames.append(\"Ana\")\nnames.append(\"Ben\")\nnames.append(\"Cara\")\n\nprint(names)\n",[30,759,760,768,772,791,809,827,831],{"__ignoreMap":28},[33,761,762,764,766],{"class":35,"line":36},[33,763,72],{"class":39},[33,765,44],{"class":43},[33,767,118],{"class":47},[33,769,770],{"class":35,"line":69},[33,771,150],{"emptyLinePlaceholder":149},[33,773,774,776,778,781,783,785,787,789],{"class":35,"line":110},[33,775,175],{"class":39},[33,777,310],{"class":47},[33,779,780],{"class":162},"append",[33,782,133],{"class":47},[33,784,80],{"class":79},[33,786,84],{"class":83},[33,788,80],{"class":79},[33,790,143],{"class":47},[33,792,793,795,797,799,801,803,805,807],{"class":35,"line":121},[33,794,175],{"class":39},[33,796,310],{"class":47},[33,798,780],{"class":162},[33,800,133],{"class":47},[33,802,80],{"class":79},[33,804,94],{"class":83},[33,806,80],{"class":79},[33,808,143],{"class":47},[33,810,811,813,815,817,819,821,823,825],{"class":35,"line":146},[33,812,175],{"class":39},[33,814,310],{"class":47},[33,816,780],{"class":162},[33,818,133],{"class":47},[33,820,80],{"class":79},[33,822,103],{"class":83},[33,824,80],{"class":79},[33,826,143],{"class":47},[33,828,829],{"class":35,"line":153},[33,830,150],{"emptyLinePlaceholder":149},[33,832,833,835,837,839],{"class":35,"line":168},[33,834,157],{"class":156},[33,836,133],{"class":47},[33,838,175],{"class":162},[33,840,143],{"class":47},[14,842,843],{},[205,844,207],{},[23,846,848],{"className":25,"code":847,"language":27,"meta":28,"style":28},"['Ana', 'Ben', 'Cara']\n",[30,849,850],{"__ignoreMap":28},[33,851,852,854,856,858,860,862,864,866,868,870,872,874,876],{"class":35,"line":36},[33,853,217],{"class":47},[33,855,236],{"class":79},[33,857,84],{"class":83},[33,859,236],{"class":79},[33,861,55],{"class":47},[33,863,245],{"class":79},[33,865,94],{"class":83},[33,867,236],{"class":79},[33,869,55],{"class":47},[33,871,245],{"class":79},[33,873,103],{"class":83},[33,875,236],{"class":79},[33,877,66],{"class":47},[14,879,880,881,310],{},"To learn more about adding items, see the ",[273,882,884,887],{"href":883},"\u002Freference\u002Fpython-list-append-method\u002F",[30,885,886],{},"append()"," method",[18,889,891,892],{"id":890},"create-a-list-with-list","Create a list with ",[30,893,305],{},[14,895,672,896,898],{},[30,897,305],{}," to convert another iterable into a list.",[14,900,901],{},"Common inputs include:",[316,903,904,907,910,913],{},[319,905,906],{},"strings",[319,908,909],{},"tuples",[319,911,912],{},"sets",[319,914,915],{},[30,916,309],{},[664,918,920],{"id":919},"example-convert-a-string","Example: convert a string",[23,922,924],{"className":25,"code":923,"language":27,"meta":28,"style":28},"letters = list(\"abc\")\nprint(letters)\n",[30,925,926,944],{"__ignoreMap":28},[33,927,928,930,932,934,936,938,940,942],{"class":35,"line":36},[33,929,124],{"class":39},[33,931,44],{"class":43},[33,933,130],{"class":129},[33,935,133],{"class":47},[33,937,80],{"class":79},[33,939,138],{"class":83},[33,941,80],{"class":79},[33,943,143],{"class":47},[33,945,946,948,950,952],{"class":35,"line":69},[33,947,157],{"class":156},[33,949,133],{"class":47},[33,951,199],{"class":162},[33,953,143],{"class":47},[14,955,956],{},[205,957,207],{},[23,959,961],{"className":25,"code":960,"language":27,"meta":28,"style":28},"['a', 'b', 'c']\n",[30,962,963],{"__ignoreMap":28},[33,964,965,967,969,971,973,975,977,979,981,983,985,987,989],{"class":35,"line":36},[33,966,217],{"class":47},[33,968,236],{"class":79},[33,970,273],{"class":83},[33,972,236],{"class":79},[33,974,55],{"class":47},[33,976,245],{"class":79},[33,978,282],{"class":83},[33,980,236],{"class":79},[33,982,55],{"class":47},[33,984,245],{"class":79},[33,986,291],{"class":83},[33,988,236],{"class":79},[33,990,66],{"class":47},[664,992,994],{"id":993},"example-convert-a-tuple","Example: convert a tuple",[23,996,998],{"className":25,"code":997,"language":27,"meta":28,"style":28},"numbers = list((1, 2, 3))\nprint(numbers)\n",[30,999,1000,1023],{"__ignoreMap":28},[33,1001,1002,1004,1006,1008,1011,1013,1015,1017,1019,1021],{"class":35,"line":36},[33,1003,40],{"class":39},[33,1005,44],{"class":43},[33,1007,130],{"class":129},[33,1009,1010],{"class":47},"((",[33,1012,52],{"class":51},[33,1014,55],{"class":47},[33,1016,58],{"class":51},[33,1018,55],{"class":47},[33,1020,63],{"class":51},[33,1022,733],{"class":47},[33,1024,1025,1027,1029,1031],{"class":35,"line":69},[33,1026,157],{"class":156},[33,1028,133],{"class":47},[33,1030,163],{"class":162},[33,1032,143],{"class":47},[14,1034,1035],{},[205,1036,207],{},[23,1038,1040],{"className":25,"code":1039,"language":27,"meta":28,"style":28},"[1, 2, 3]\n",[30,1041,1042],{"__ignoreMap":28},[33,1043,1044,1046,1048,1050,1052,1054,1056],{"class":35,"line":36},[33,1045,217],{"class":47},[33,1047,52],{"class":51},[33,1049,55],{"class":47},[33,1051,58],{"class":51},[33,1053,55],{"class":47},[33,1055,63],{"class":51},[33,1057,66],{"class":47},[664,1059,1061],{"id":1060},"example-convert-a-range","Example: convert a range",[23,1063,1065],{"className":25,"code":1064,"language":27,"meta":28,"style":28},"values = list(range(5))\nprint(values)\n",[30,1066,1067,1088],{"__ignoreMap":28},[33,1068,1069,1072,1074,1076,1078,1081,1083,1086],{"class":35,"line":36},[33,1070,1071],{"class":39},"values ",[33,1073,44],{"class":43},[33,1075,130],{"class":129},[33,1077,133],{"class":47},[33,1079,1080],{"class":156},"range",[33,1082,133],{"class":47},[33,1084,1085],{"class":51},"5",[33,1087,733],{"class":47},[33,1089,1090,1092,1094,1097],{"class":35,"line":69},[33,1091,157],{"class":156},[33,1093,133],{"class":47},[33,1095,1096],{"class":162},"values",[33,1098,143],{"class":47},[14,1100,1101],{},[205,1102,207],{},[23,1104,1106],{"className":25,"code":1105,"language":27,"meta":28,"style":28},"[0, 1, 2, 3, 4]\n",[30,1107,1108],{"__ignoreMap":28},[33,1109,1110,1112,1115,1117,1120,1122,1124,1126,1128,1130,1133],{"class":35,"line":36},[33,1111,217],{"class":47},[33,1113,1114],{"class":51},"0",[33,1116,55],{"class":47},[33,1118,1119],{"class":51}," 1",[33,1121,55],{"class":47},[33,1123,58],{"class":51},[33,1125,55],{"class":47},[33,1127,63],{"class":51},[33,1129,55],{"class":47},[33,1131,1132],{"class":51}," 4",[33,1134,66],{"class":47},[14,1136,1137,1139,1140,310],{},[30,1138,305],{}," is useful when you already have another iterable and want a list version of it. For more detail, see ",[273,1141,1143,1145],{"href":1142},"\u002Freference\u002Fpython-list-function-explained\u002F",[30,1144,305],{},": Function Explained",[18,1147,1149],{"id":1148},"lists-can-store-many-kinds-of-values","Lists can store many kinds of values",[14,1151,1152],{},"A list can store many types of data.",[14,1154,1155],{},"Examples include:",[316,1157,1158,1160,1163,1166,1169],{},[319,1159,906],{},[319,1161,1162],{},"integers",[319,1164,1165],{},"floats",[319,1167,1168],{},"booleans",[319,1170,1171],{},"other lists",[23,1173,1175],{"className":25,"code":1174,"language":27,"meta":28,"style":28},"data = [\"Ana\", 25, True, [1, 2, 3]]\n\nprint(data)\n",[30,1176,1177,1218,1222],{"__ignoreMap":28},[33,1178,1179,1182,1184,1186,1188,1190,1192,1194,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215],{"class":35,"line":36},[33,1180,1181],{"class":39},"data ",[33,1183,44],{"class":43},[33,1185,48],{"class":47},[33,1187,80],{"class":79},[33,1189,84],{"class":83},[33,1191,80],{"class":79},[33,1193,55],{"class":47},[33,1195,1196],{"class":51}," 25",[33,1198,55],{"class":47},[33,1200,399],{"class":398},[33,1202,55],{"class":47},[33,1204,48],{"class":47},[33,1206,52],{"class":51},[33,1208,55],{"class":47},[33,1210,58],{"class":51},[33,1212,55],{"class":47},[33,1214,63],{"class":51},[33,1216,1217],{"class":47},"]]\n",[33,1219,1220],{"class":35,"line":69},[33,1221,150],{"emptyLinePlaceholder":149},[33,1223,1224,1226,1228,1231],{"class":35,"line":110},[33,1225,157],{"class":156},[33,1227,133],{"class":47},[33,1229,1230],{"class":162},"data",[33,1232,143],{"class":47},[14,1234,1235],{},[205,1236,207],{},[23,1238,1240],{"className":25,"code":1239,"language":27,"meta":28,"style":28},"['Ana', 25, True, [1, 2, 3]]\n",[30,1241,1242],{"__ignoreMap":28},[33,1243,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274],{"class":35,"line":36},[33,1245,217],{"class":47},[33,1247,236],{"class":79},[33,1249,84],{"class":83},[33,1251,236],{"class":79},[33,1253,55],{"class":47},[33,1255,1196],{"class":51},[33,1257,55],{"class":47},[33,1259,399],{"class":398},[33,1261,55],{"class":47},[33,1263,48],{"class":47},[33,1265,52],{"class":51},[33,1267,55],{"class":47},[33,1269,58],{"class":51},[33,1271,55],{"class":47},[33,1273,63],{"class":51},[33,1275,1217],{"class":47},[14,1277,1278,1279,310],{},"The last item in this example is another list. This is called a ",[205,1280,1281],{},"nested list",[14,1283,1284],{},"Python allows mixed types in one list, but beginners should usually keep list data consistent when possible. That makes code easier to read and work with.",[18,1286,1288],{"id":1287},"common-beginner-mistakes","Common beginner mistakes",[14,1290,1291],{},"Here are some common problems when creating lists.",[664,1293,1295],{"id":1294},"forgetting-commas-between-items","Forgetting commas between items",[14,1297,1298],{},"This causes a syntax error.",[23,1300,1302],{"className":25,"code":1301,"language":27,"meta":28,"style":28},"# Wrong\nnumbers = [1 2 3]\n",[30,1303,1304,1310],{"__ignoreMap":28},[33,1305,1306],{"class":35,"line":36},[33,1307,1309],{"class":1308},"sutJx","# Wrong\n",[33,1311,1312,1314,1316,1318,1320,1322,1324],{"class":35,"line":69},[33,1313,40],{"class":39},[33,1315,44],{"class":43},[33,1317,48],{"class":47},[33,1319,52],{"class":51},[33,1321,58],{"class":51},[33,1323,63],{"class":51},[33,1325,66],{"class":47},[14,1327,1328],{},"Correct version:",[23,1330,1332],{"className":25,"code":1331,"language":27,"meta":28,"style":28},"numbers = [1, 2, 3]\n",[30,1333,1334],{"__ignoreMap":28},[33,1335,1336,1338,1340,1342,1344,1346,1348,1350,1352],{"class":35,"line":36},[33,1337,40],{"class":39},[33,1339,44],{"class":43},[33,1341,48],{"class":47},[33,1343,52],{"class":51},[33,1345,55],{"class":47},[33,1347,58],{"class":51},[33,1349,55],{"class":47},[33,1351,63],{"class":51},[33,1353,66],{"class":47},[664,1355,1357,1358,1361,1362],{"id":1356},"using-instead-of","Using ",[30,1359,1360],{},"()"," instead of ",[30,1363,301],{},[14,1365,1366],{},"Parentheses usually create a tuple, not a list.",[23,1368,1370],{"className":25,"code":1369,"language":27,"meta":28,"style":28},"my_values = (1, 2, 3)\n\nprint(type(my_values))\n",[30,1371,1372,1394,1398],{"__ignoreMap":28},[33,1373,1374,1377,1379,1382,1384,1386,1388,1390,1392],{"class":35,"line":36},[33,1375,1376],{"class":39},"my_values ",[33,1378,44],{"class":43},[33,1380,1381],{"class":47}," (",[33,1383,52],{"class":51},[33,1385,55],{"class":47},[33,1387,58],{"class":51},[33,1389,55],{"class":47},[33,1391,63],{"class":51},[33,1393,143],{"class":47},[33,1395,1396],{"class":35,"line":69},[33,1397,150],{"emptyLinePlaceholder":149},[33,1399,1400,1402,1404,1407,1409,1412],{"class":35,"line":110},[33,1401,157],{"class":156},[33,1403,133],{"class":47},[33,1405,1406],{"class":129},"type",[33,1408,133],{"class":47},[33,1410,1411],{"class":162},"my_values",[33,1413,733],{"class":47},[14,1415,1416],{},[205,1417,207],{},[23,1419,1421],{"className":25,"code":1420,"language":27,"meta":28,"style":28},"\u003Cclass 'tuple'>\n",[30,1422,1423],{"__ignoreMap":28},[33,1424,1425,1428,1432,1434,1437,1439],{"class":35,"line":36},[33,1426,1427],{"class":43},"\u003C",[33,1429,1431],{"class":1430},"sbsja","class",[33,1433,245],{"class":79},[33,1435,1436],{"class":83},"tuple",[33,1438,236],{"class":79},[33,1440,1441],{"class":43},">\n",[14,1443,1444],{},"If you want a list, use square brackets:",[23,1446,1448],{"className":25,"code":1447,"language":27,"meta":28,"style":28},"my_values = [1, 2, 3]\nprint(type(my_values))\n",[30,1449,1450,1470],{"__ignoreMap":28},[33,1451,1452,1454,1456,1458,1460,1462,1464,1466,1468],{"class":35,"line":36},[33,1453,1376],{"class":39},[33,1455,44],{"class":43},[33,1457,48],{"class":47},[33,1459,52],{"class":51},[33,1461,55],{"class":47},[33,1463,58],{"class":51},[33,1465,55],{"class":47},[33,1467,63],{"class":51},[33,1469,66],{"class":47},[33,1471,1472,1474,1476,1478,1480,1482],{"class":35,"line":69},[33,1473,157],{"class":156},[33,1475,133],{"class":47},[33,1477,1406],{"class":129},[33,1479,133],{"class":47},[33,1481,1411],{"class":162},[33,1483,733],{"class":47},[664,1485,1487,1488,1491],{"id":1486},"expecting-listhello-world-to-create-a-list-of-words","Expecting ",[30,1489,1490],{},"list(\"hello world\")"," to create a list of words",[14,1493,1494,1496],{},[30,1495,305],{}," splits a string into individual characters, not words.",[23,1498,1500],{"className":25,"code":1499,"language":27,"meta":28,"style":28},"result = list(\"hello world\")\nprint(result)\n",[30,1501,1502,1522],{"__ignoreMap":28},[33,1503,1504,1507,1509,1511,1513,1515,1518,1520],{"class":35,"line":36},[33,1505,1506],{"class":39},"result ",[33,1508,44],{"class":43},[33,1510,130],{"class":129},[33,1512,133],{"class":47},[33,1514,80],{"class":79},[33,1516,1517],{"class":83},"hello world",[33,1519,80],{"class":79},[33,1521,143],{"class":47},[33,1523,1524,1526,1528,1531],{"class":35,"line":69},[33,1525,157],{"class":156},[33,1527,133],{"class":47},[33,1529,1530],{"class":162},"result",[33,1532,143],{"class":47},[14,1534,1535],{},[205,1536,207],{},[23,1538,1540],{"className":25,"code":1539,"language":27,"meta":28,"style":28},"['h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd']\n",[30,1541,1542],{"__ignoreMap":28},[33,1543,1544,1546,1548,1551,1553,1555,1557,1560,1562,1564,1566,1569,1571,1573,1575,1577,1579,1581,1583,1586,1588,1590,1592,1594,1596,1598,1601,1603,1605,1607,1609,1611,1613,1615,1618,1620,1622,1624,1626,1628,1630,1632,1635,1637],{"class":35,"line":36},[33,1545,217],{"class":47},[33,1547,236],{"class":79},[33,1549,1550],{"class":83},"h",[33,1552,236],{"class":79},[33,1554,55],{"class":47},[33,1556,245],{"class":79},[33,1558,1559],{"class":83},"e",[33,1561,236],{"class":79},[33,1563,55],{"class":47},[33,1565,245],{"class":79},[33,1567,1568],{"class":83},"l",[33,1570,236],{"class":79},[33,1572,55],{"class":47},[33,1574,245],{"class":79},[33,1576,1568],{"class":83},[33,1578,236],{"class":79},[33,1580,55],{"class":47},[33,1582,245],{"class":79},[33,1584,1585],{"class":83},"o",[33,1587,236],{"class":79},[33,1589,55],{"class":47},[33,1591,245],{"class":79},[33,1593,245],{"class":79},[33,1595,55],{"class":47},[33,1597,245],{"class":79},[33,1599,1600],{"class":83},"w",[33,1602,236],{"class":79},[33,1604,55],{"class":47},[33,1606,245],{"class":79},[33,1608,1585],{"class":83},[33,1610,236],{"class":79},[33,1612,55],{"class":47},[33,1614,245],{"class":79},[33,1616,1617],{"class":83},"r",[33,1619,236],{"class":79},[33,1621,55],{"class":47},[33,1623,245],{"class":79},[33,1625,1568],{"class":83},[33,1627,236],{"class":79},[33,1629,55],{"class":47},[33,1631,245],{"class":79},[33,1633,1634],{"class":83},"d",[33,1636,236],{"class":79},[33,1638,66],{"class":47},[14,1640,1641,1642,1645],{},"If you want words, use ",[30,1643,1644],{},"split()"," instead:",[23,1647,1649],{"className":25,"code":1648,"language":27,"meta":28,"style":28},"words = \"hello world\".split()\nprint(words)\n",[30,1650,1651,1672],{"__ignoreMap":28},[33,1652,1653,1656,1658,1660,1662,1664,1666,1669],{"class":35,"line":36},[33,1654,1655],{"class":39},"words ",[33,1657,44],{"class":43},[33,1659,91],{"class":79},[33,1661,1517],{"class":83},[33,1663,80],{"class":79},[33,1665,310],{"class":47},[33,1667,1668],{"class":162},"split",[33,1670,1671],{"class":47},"()\n",[33,1673,1674,1676,1678,1681],{"class":35,"line":69},[33,1675,157],{"class":156},[33,1677,133],{"class":47},[33,1679,1680],{"class":162},"words",[33,1682,143],{"class":47},[14,1684,1685],{},[205,1686,207],{},[23,1688,1690],{"className":25,"code":1689,"language":27,"meta":28,"style":28},"['hello', 'world']\n",[30,1691,1692],{"__ignoreMap":28},[33,1693,1694,1696,1698,1700,1702,1704,1706,1709,1711],{"class":35,"line":36},[33,1695,217],{"class":47},[33,1697,236],{"class":79},[33,1699,545],{"class":83},[33,1701,236],{"class":79},[33,1703,55],{"class":47},[33,1705,245],{"class":79},[33,1707,1708],{"class":83},"world",[33,1710,236],{"class":79},[33,1712,66],{"class":47},[664,1714,1716],{"id":1715},"adding-mismatched-brackets-or-quotes","Adding mismatched brackets or quotes",[14,1718,1719],{},"This causes syntax errors.",[23,1721,1723],{"className":25,"code":1722,"language":27,"meta":28,"style":28},"# Wrong\nnames = [\"Ana\", \"Ben', \"Cara\"]\n",[30,1724,1725,1729],{"__ignoreMap":28},[33,1726,1727],{"class":35,"line":36},[33,1728,1309],{"class":1308},[33,1730,1731,1733,1735,1737,1739,1741,1743,1745,1747,1750,1752,1754,1756],{"class":35,"line":69},[33,1732,72],{"class":39},[33,1734,44],{"class":43},[33,1736,48],{"class":47},[33,1738,80],{"class":79},[33,1740,84],{"class":83},[33,1742,80],{"class":79},[33,1744,55],{"class":47},[33,1746,91],{"class":79},[33,1748,1749],{"class":83},"Ben', ",[33,1751,80],{"class":79},[33,1753,103],{"class":39},[33,1755,80],{"class":79},[33,1757,66],{"class":83},[14,1759,1760],{},"Make sure your quotes and brackets match correctly:",[23,1762,1764],{"className":25,"code":1763,"language":27,"meta":28,"style":28},"names = [\"Ana\", \"Ben\", \"Cara\"]\n",[30,1765,1766],{"__ignoreMap":28},[33,1767,1768,1770,1772,1774,1776,1778,1780,1782,1784,1786,1788,1790,1792,1794,1796],{"class":35,"line":36},[33,1769,72],{"class":39},[33,1771,44],{"class":43},[33,1773,48],{"class":47},[33,1775,80],{"class":79},[33,1777,84],{"class":83},[33,1779,80],{"class":79},[33,1781,55],{"class":47},[33,1783,91],{"class":79},[33,1785,94],{"class":83},[33,1787,80],{"class":79},[33,1789,55],{"class":47},[33,1791,91],{"class":79},[33,1793,103],{"class":83},[33,1795,80],{"class":79},[33,1797,66],{"class":47},[664,1799,1801],{"id":1800},"common-causes-to-check","Common causes to check",[14,1803,1804],{},"If your list code is not working, check for these issues:",[316,1806,1807,1810,1813,1818],{},[319,1808,1809],{},"Using parentheses instead of square brackets",[319,1811,1812],{},"Leaving out commas between list items",[319,1814,1815,1816],{},"Passing a non-iterable value to ",[30,1817,305],{},[319,1819,1487,1820,1823],{},[30,1821,1822],{},"list(\"abc\")"," to return one string item instead of separate characters",[664,1825,1827],{"id":1826},"useful-debugging-checks","Useful debugging checks",[23,1829,1831],{"className":25,"code":1830,"language":27,"meta":28,"style":28},"print(my_list)\nprint(type(my_list))\nprint(len(my_list))\nprint(list(range(5)))\n",[30,1832,1833,1843,1857,1871],{"__ignoreMap":28},[33,1834,1835,1837,1839,1841],{"class":35,"line":36},[33,1836,157],{"class":156},[33,1838,133],{"class":47},[33,1840,715],{"class":162},[33,1842,143],{"class":47},[33,1844,1845,1847,1849,1851,1853,1855],{"class":35,"line":69},[33,1846,157],{"class":156},[33,1848,133],{"class":47},[33,1850,1406],{"class":129},[33,1852,133],{"class":47},[33,1854,715],{"class":162},[33,1856,733],{"class":47},[33,1858,1859,1861,1863,1865,1867,1869],{"class":35,"line":110},[33,1860,157],{"class":156},[33,1862,133],{"class":47},[33,1864,726],{"class":156},[33,1866,133],{"class":47},[33,1868,715],{"class":162},[33,1870,733],{"class":47},[33,1872,1873,1875,1877,1880,1882,1884,1886,1888],{"class":35,"line":121},[33,1874,157],{"class":156},[33,1876,133],{"class":47},[33,1878,1879],{"class":129},"list",[33,1881,133],{"class":47},[33,1883,1080],{"class":156},[33,1885,133],{"class":47},[33,1887,1085],{"class":51},[33,1889,1890],{"class":47},")))\n",[14,1892,1893],{},"These help you confirm:",[316,1895,1896,1899,1902,1905],{},[319,1897,1898],{},"what the list contains",[319,1900,1901],{},"whether the value is really a list",[319,1903,1904],{},"how many items it has",[319,1906,1907,1908,1910,1911],{},"what ",[30,1909,305],{}," does with ",[30,1912,309],{},[18,1914,1916],{"id":1915},"when-to-use-this-page-vs-related-pages","When to use this page vs related pages",[14,1918,1919],{},"Use this page when you want to learn how to create a list.",[14,1921,1922],{},"Use related pages for the next step:",[316,1924,1925,1946,1951],{},[319,1926,672,1927,1931,1932,1938,1939,1945],{},[273,1928,1929],{"href":883},[30,1930,886],{},", ",[273,1933,1935],{"href":1934},"\u002Freference\u002Fpython-list-extend-method\u002F",[30,1936,1937],{},"extend()",", and ",[273,1940,1942],{"href":1941},"\u002Freference\u002Fpython-list-insert-method\u002F",[30,1943,1944],{},"insert()"," to add items later",[319,1947,672,1948,1950],{},[273,1949,452],{"href":451}," for a broader introduction",[319,1952,672,1953,1957],{},[273,1954,1955,1145],{"href":1142},[30,1956,305],{}," for more detail about converting values into lists",[18,1959,1961],{"id":1960},"faq","FAQ",[664,1963,1965],{"id":1964},"how-do-i-create-an-empty-list-in-python","How do I create an empty list in Python?",[14,1967,1968],{},"Use empty square brackets:",[23,1970,1971],{"className":25,"code":264,"language":27,"meta":28,"style":28},[30,1972,1973],{"__ignoreMap":28},[33,1974,1975],{"class":35,"line":36},[33,1976,264],{"class":47},[664,1978,1980],{"id":1979},"what-is-the-most-common-way-to-create-a-list","What is the most common way to create a list?",[14,1982,1983],{},"Use square brackets with comma-separated items, such as:",[23,1985,1986],{"className":25,"code":1039,"language":27,"meta":28,"style":28},[30,1987,1988],{"__ignoreMap":28},[33,1989,1990,1992,1994,1996,1998,2000,2002],{"class":35,"line":36},[33,1991,217],{"class":47},[33,1993,52],{"class":51},[33,1995,55],{"class":47},[33,1997,58],{"class":51},[33,1999,55],{"class":47},[33,2001,63],{"class":51},[33,2003,66],{"class":47},[664,2005,2007,2008,2010],{"id":2006},"what-does-list-do-in-python","What does ",[30,2009,305],{}," do in Python?",[14,2012,2013,2014,2016],{},"It converts another iterable, such as a string, tuple, or ",[30,2015,309],{},", into a list.",[664,2018,2020],{"id":2019},"can-a-python-list-store-different-data-types","Can a Python list store different data types?",[14,2022,2023],{},"Yes. A list can store mixed types like strings, numbers, and booleans.",[664,2025,2027,2028,2030,2031,2033],{"id":2026},"what-is-the-difference-between-and","What is the difference between ",[30,2029,301],{}," and ",[30,2032,1360],{},"?",[14,2035,2036,2038,2039,2041],{},[30,2037,301],{}," creates a list. ",[30,2040,1360],{}," usually creates a tuple.",[18,2043,2045],{"id":2044},"see-also","See also",[316,2047,2048,2052,2060,2066,2072,2080,2084],{},[319,2049,2050],{},[273,2051,452],{"href":451},[319,2053,2054],{},[273,2055,2056,2057,2059],{"href":883},"Python list ",[30,2058,886],{}," Method",[319,2061,2062],{},[273,2063,2056,2064,2059],{"href":1934},[30,2065,1937],{},[319,2067,2068],{},[273,2069,2056,2070,2059],{"href":1941},[30,2071,1944],{},[319,2073,2074],{},[273,2075,2076,2077,2079],{"href":1142},"Python ",[30,2078,305],{}," Function Explained",[319,2081,2082],{},[273,2083,457],{"href":456},[319,2085,2086],{},[273,2087,2089],{"href":2088},"\u002Flearn\u002Fmutability-in-python-explained-mutable-vs-immutable-types\u002F","Mutability in Python Explained",[14,2091,2092,2093,2095],{},"Next step: learn how to add, access, and change list items using ",[30,2094,886],{},", indexing, and slicing.",[2097,2098,2099],"style",{},"html pre.shiki code .su5hD, html code.shiki .su5hD{--shiki-light:#90A4AE;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .smGrS, html code.shiki .smGrS{--shiki-light:#39ADB5;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sP7_E, html code.shiki .sP7_E{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .srdBf, html code.shiki .srdBf{--shiki-light:#F76D47;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sjJ54, html code.shiki .sjJ54{--shiki-light:#39ADB5;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .s_sjI, html code.shiki .s_sjI{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sZMiF, html code.shiki .sZMiF{--shiki-light:#E2931D;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sptTA, html code.shiki .sptTA{--shiki-light:#6182B8;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .slqww, html code.shiki .slqww{--shiki-light:#6182B8;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s39Yj, html code.shiki .s39Yj{--shiki-light:#39ADB5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sutJx, html code.shiki .sutJx{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#6A737D;--shiki-default-font-style:inherit;--shiki-dark:#6A737D;--shiki-dark-font-style:inherit}html pre.shiki code .sbsja, html code.shiki .sbsja{--shiki-light:#9C3EDA;--shiki-default:#D73A49;--shiki-dark:#F97583}",{"title":28,"searchDepth":69,"depth":69,"links":2101},[2102,2103,2104,2105,2108,2109,2115,2116,2126,2127,2136],{"id":20,"depth":69,"text":21},{"id":313,"depth":69,"text":314},{"id":339,"depth":69,"text":340},{"id":460,"depth":69,"text":461,"children":2106},[2107],{"id":666,"depth":110,"text":667},{"id":684,"depth":69,"text":685},{"id":890,"depth":69,"text":2110,"children":2111},"Create a list with list()",[2112,2113,2114],{"id":919,"depth":110,"text":920},{"id":993,"depth":110,"text":994},{"id":1060,"depth":110,"text":1061},{"id":1148,"depth":69,"text":1149},{"id":1287,"depth":69,"text":1288,"children":2117},[2118,2119,2121,2123,2124,2125],{"id":1294,"depth":110,"text":1295},{"id":1356,"depth":110,"text":2120},"Using () instead of []",{"id":1486,"depth":110,"text":2122},"Expecting list(\"hello world\") to create a list of words",{"id":1715,"depth":110,"text":1716},{"id":1800,"depth":110,"text":1801},{"id":1826,"depth":110,"text":1827},{"id":1915,"depth":69,"text":1916},{"id":1960,"depth":69,"text":1961,"children":2128},[2129,2130,2131,2133,2134],{"id":1964,"depth":110,"text":1965},{"id":1979,"depth":110,"text":1980},{"id":2006,"depth":110,"text":2132},"What does list() do in Python?",{"id":2019,"depth":110,"text":2020},{"id":2026,"depth":110,"text":2135},"What is the difference between [] and ()?",{"id":2044,"depth":69,"text":2045},"Master python list creating a list in our comprehensive Python beginner guide.","md",{},"\u002Freference\u002Fpython-list-creating-a-list",{"title":5,"description":2137},"reference\u002Fpython-list-creating-a-list","qsr8XW8AjVDmPmBKxRn9AxuodoiKbvD3OgKNyhirhog",1777585505411]