{"id":5285,"date":"2021-05-10T09:32:08","date_gmt":"2021-05-10T04:02:08","guid":{"rendered":"https:\/\/python-programs.com\/?p=5285"},"modified":"2021-11-22T18:42:49","modified_gmt":"2021-11-22T13:12:49","slug":"python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/","title":{"rendered":"Python: Read CSV into a list of lists or tuples or dictionaries | Import csv to list"},"content":{"rendered":"

Read CSV into a list of lists or tuples or dictionaries | Import csv to list in Python.<\/h2>\n

In this article, we will demonstrate how we can import a CSV into a list, list of lists or a list of tuples in python. We will be using pandas module for importing CSV contents to the list without headers.<\/p>\n

Example Dataset :<\/p>\n

CSV File name – data.csv<\/p>\n

Id,Name,Course,City,Session\r\n21,Jill,DSA,Texas,Night\r\n22,Rachel,DSA,Tokyo,Day\r\n23,Kirti,ML,Paris,Day\r\n32,Veena,DSA,New York,Night<\/pre>\n

Read a CSV into list of lists in python :<\/h3>\n

1. Importing csv to a list of lists using csv.reader :<\/strong><\/p>\n

CSV.reader<\/code> is a python built-in function from the CSV module which will help us read the CSV file into the python. Then passing the reader object into the list()<\/code> will return a list of lists.<\/p>\n

Let’s see the implementation of it.<\/p>\n

#Program :\r\n\r\nfrom csv import reader\r\n\r\n#Opening the csv file as a list of lists in read mode\r\nwith open('data.csv', 'r') as csvObj:\r\n #The object having the file is passed into the reader\r\n csv_reader = reader(csvObj)\r\n #The reader object is passed into the list( ) to generate a list of lists\r\n rowList = list(csv_reader)\r\n print(rowList)\r\n<\/pre>\n
Output :\r\n[['Id', 'Name', 'Course', 'City', 'Session'], \r\n['21', 'Jill', 'DSA', 'Texas', 'Night'], \r\n['22', 'Rachel', 'DSA', 'Tokyo', 'Day'], \r\n['23', 'Kirti', 'ML', 'Paris', 'Day'], \r\n['32', 'Veena', 'DSA', 'New York', 'Night']]<\/pre>\n

2. Selecting specific value in csv by specific row and column number :<\/strong><\/h4>\n

\u00a0<\/strong>We can also select particular rows and columns from the CSV file by using Pandas. We have to read the CSV into a dataframe excluding the header and create a list of lists.<\/p>\n

Let’s see the implementation of it.<\/p>\n

#Program :\r\n\r\nimport pandas as pd\r\n\r\n# Create a dataframe from the csv file\r\ndfObj = pd.read_csv('data.csv', delimiter=',')\r\n# User list comprehension \r\n# for creating a list of lists from Dataframe rows\r\nrowList = [list(row) for row in dfObj.values]\r\n# Print the list of lists i.e. only rows without the header\r\nprint(rowList)\r\n<\/pre>\n
Output :\r\n[[21, 'Jill', 'DSA', 'Texas', 'Night'], \r\n[22, 'Rachel', 'DSA', 'Tokyo', 'Day'], \r\n[23, 'Kirti', 'ML', 'Paris', 'Day'], \r\n[32, 'Veena', 'DSA', 'New York', 'Night']]<\/pre>\n

3. Using Pandas to read csv into a list of lists with header :<\/h4>\n

To include the header row, we can first read the other rows like the previous example and then add the header to the list.<\/p>\n

Let’s see the implementation of it.<\/p>\n

#Program :\r\n\r\nimport pandas as pd\r\n\r\n# Create a dataframe from the csv file\r\ndfObj = pd.read_csv('data.csv', delimiter=',')\r\n# User list comprehension \r\n# for creating a list of lists from Dataframe rows\r\nrowList = [list(row) for row in dfObj.values]\r\n#Adding the header\r\nrowList.insert(0, dfObj.columns.to_list())\r\n# Print the list of lists with the header\r\nprint(rowList)\r\n<\/pre>\n
Output :\r\n[['Id', 'Name', 'Course', 'City', 'Session'], \r\n[21, 'Jill', 'DSA', 'Texas', 'Night'], \r\n[22, 'Rachel', 'DSA', 'Tokyo', 'Day'], \r\n[23, 'Kirti', 'ML', 'Paris', 'Day'], \r\n[32, 'Veena', 'DSA', 'New York', 'Night']]<\/pre>\n

Reading csv into list of tuples using Python :<\/h3>\n

Let\u2019s add the contents of CSV file as a list of tuples. Each tuple will be representing a row and each value in the tuple represents a column value. Just like the way we added the contents into a list of lists from CSV, we will read the CSV file and then pass it into list function to create a list of tuples. The only difference here is the map( )<\/code> function that accepts function and input list arguments.<\/p>\n

Let’s see the implementation of it.<\/p>\n

#Program :\r\n\r\nfrom csv import reader\r\n# open file in read mode\r\nwith open('data.csv', 'r') as readerObj:\r\n    # here passing the file object to reader() to get the reader object\r\n    csv_reader = reader(readerObj)\r\n    #Read all CSV files into the tuples\r\n    tuplesList = list(map(tuple, csv_reader))\r\n    # display the list of tuples\r\n    print(tuplesList)\r\n<\/pre>\n
Output :\r\n\r\n[('Id', 'Name', 'Course', 'City', 'Session'), ('21', 'Jill', 'DSA', 'Texas', 'Night'), ('22', 'Rachel', 'DSA', 'Tokyo', 'Day'), ('23', 'Kirti', 'ML', 'Paris', 'Day'), ('32', 'Veena', 'DSA', 'New York', 'Night')]<\/pre>\n

Reading csv into list of tuples using pandas & list comprehension :<\/h3>\n

We can load the contents of a CSV file into a dataframe by using read_csv( )<\/code> . Then using list comprehension we can convert the 2D numpy array into a list of tuples.<\/p>\n

Let’s see the implementation of it.<\/p>\n

#Program :\r\n\r\nimport pandas as pd\r\n# Create a dataframe object from the csv file\r\ndfObj = pd.read_csv('data.csv', delimiter=',')\r\n# Create a list of tuples for Dataframe rows using list comprehension\r\ntuplesList = [tuple(row) for row in dfObj.values]\r\n# Print the list of tuple\r\nprint(tuplesList)\r\n<\/pre>\n
Output :\r\n[(21, 'Jill', 'DSA', 'Texas', 'Night'), (22, 'Rachel', 'DSA', 'Tokyo', 'Day'), (23, 'Kirti', 'ML', 'Paris', 'Day'), (32, 'Veena', 'DSA', 'New York', 'Night')]<\/pre>\n

Reading csv into list of dictionaries using python :<\/h3>\n

We can also read the contents of a CSV file into dictionaries in python where each dictionary in the list will be a row from the CSV file. The CSV file contents are opened in read mode then they are passed into the Dict_reader( )<\/code> as a reader object, then it is passed into the list.<\/p>\n

Let’s see the implementation of it.<\/p>\n

#Program :\r\n\r\nfrom csv import DictReader\r\n# open file in read mode\r\nwith open('data.csv', 'r') as readerObj:\r\n    # pass the reader file object to DictReader() to get the DictReader object\r\n    dict_reader = DictReader(readerObj)\r\n    # get a list of dictionaries from dct_reader\r\n    dictList = list(dict_reader)\r\n    # print the list of dict\r\n    print(dictList)\r\n<\/pre>\n
Output :\r\n\r\n[OrderedDict([('Id', '21'), ('Name', 'Jill'), ('Course', 'DSA'), ('City', 'Texas'), ('Session', 'Night')]), OrderedDict([('Id', '22'), ('Name', 'Rachel'), ('Course', 'DSA'), ('City', 'Tokyo'), ('Session', 'Day')]), OrderedDict([('Id', '23'), ('Name', 'Kirti'), ('Course', 'ML'), ('City', 'Paris'), ('Session', 'Day')]), OrderedDict([('Id', '32'), ('Name', 'Veena'), ('Course', 'DSA'), ('City', 'New York'), ('Session', 'Night')])]<\/pre>\n","protected":false},"excerpt":{"rendered":"

Read CSV into a list of lists or tuples or dictionaries | Import csv to list in Python. In this article, we will demonstrate how we can import a CSV into a list, list of lists or a list of tuples in python. We will be using pandas module for importing CSV contents to the …<\/p>\n

Python: Read CSV into a list of lists or tuples or dictionaries | Import csv to list<\/span> Read More »<\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[5],"tags":[],"yoast_head":"\nPython: Read CSV into a list of lists or tuples or dictionaries | Import csv to list - Python Programs<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python: Read CSV into a list of lists or tuples or dictionaries | Import csv to list - Python Programs\" \/>\n<meta property=\"og:description\" content=\"Read CSV into a list of lists or tuples or dictionaries | Import csv to list in Python. In this article, we will demonstrate how we can import a CSV into a list, list of lists or a list of tuples in python. We will be using pandas module for importing CSV contents to the … Python: Read CSV into a list of lists or tuples or dictionaries | Import csv to list Read More »\" \/>\n<meta property=\"og:url\" content=\"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Programs\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/btechgeeks\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-10T04:02:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-22T13:12:49+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@btech_geeks\" \/>\n<meta name=\"twitter:site\" content=\"@btech_geeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Satyabrata Jena\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/python-programs.com\/#organization\",\"name\":\"BTech Geeks\",\"url\":\"https:\/\/python-programs.com\/\",\"sameAs\":[\"https:\/\/www.instagram.com\/btechgeeks\/\",\"https:\/\/www.linkedin.com\/in\/btechgeeks\",\"https:\/\/in.pinterest.com\/btechgeek\/\",\"https:\/\/www.youtube.com\/channel\/UC9MlCqdJ3lKqz2p5114SDIg\",\"https:\/\/www.facebook.com\/btechgeeks\",\"https:\/\/twitter.com\/btech_geeks\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/python-programs.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/python-programs.com\/wp-content\/uploads\/2020\/11\/BTechGeeks.png\",\"contentUrl\":\"https:\/\/python-programs.com\/wp-content\/uploads\/2020\/11\/BTechGeeks.png\",\"width\":350,\"height\":70,\"caption\":\"BTech Geeks\"},\"image\":{\"@id\":\"https:\/\/python-programs.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/python-programs.com\/#website\",\"url\":\"https:\/\/python-programs.com\/\",\"name\":\"Python Programs\",\"description\":\"Python Programs with Examples, How To Guides on Python\",\"publisher\":{\"@id\":\"https:\/\/python-programs.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/python-programs.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/#webpage\",\"url\":\"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/\",\"name\":\"Python: Read CSV into a list of lists or tuples or dictionaries | Import csv to list - Python Programs\",\"isPartOf\":{\"@id\":\"https:\/\/python-programs.com\/#website\"},\"datePublished\":\"2021-05-10T04:02:08+00:00\",\"dateModified\":\"2021-11-22T13:12:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/python-programs.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python: Read CSV into a list of lists or tuples or dictionaries | Import csv to list\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/#webpage\"},\"author\":{\"@id\":\"https:\/\/python-programs.com\/#\/schema\/person\/0f6d731bda7051ce3586f71299f391cd\"},\"headline\":\"Python: Read CSV into a list of lists or tuples or dictionaries | Import csv to list\",\"datePublished\":\"2021-05-10T04:02:08+00:00\",\"dateModified\":\"2021-11-22T13:12:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/#webpage\"},\"wordCount\":438,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/python-programs.com\/#organization\"},\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/python-programs.com\/#\/schema\/person\/0f6d731bda7051ce3586f71299f391cd\",\"name\":\"Satyabrata Jena\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/python-programs.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c1bf8033ec357d085f41815bee1625cc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c1bf8033ec357d085f41815bee1625cc?s=96&d=mm&r=g\",\"caption\":\"Satyabrata Jena\"},\"url\":\"https:\/\/python-programs.com\/author\/satyabrata\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python: Read CSV into a list of lists or tuples or dictionaries | Import csv to list - Python Programs","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:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/","og_locale":"en_US","og_type":"article","og_title":"Python: Read CSV into a list of lists or tuples or dictionaries | Import csv to list - Python Programs","og_description":"Read CSV into a list of lists or tuples or dictionaries | Import csv to list in Python. In this article, we will demonstrate how we can import a CSV into a list, list of lists or a list of tuples in python. We will be using pandas module for importing CSV contents to the … Python: Read CSV into a list of lists or tuples or dictionaries | Import csv to list Read More »","og_url":"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/","og_site_name":"Python Programs","article_publisher":"https:\/\/www.facebook.com\/btechgeeks","article_published_time":"2021-05-10T04:02:08+00:00","article_modified_time":"2021-11-22T13:12:49+00:00","twitter_card":"summary_large_image","twitter_creator":"@btech_geeks","twitter_site":"@btech_geeks","twitter_misc":{"Written by":"Satyabrata Jena","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/python-programs.com\/#organization","name":"BTech Geeks","url":"https:\/\/python-programs.com\/","sameAs":["https:\/\/www.instagram.com\/btechgeeks\/","https:\/\/www.linkedin.com\/in\/btechgeeks","https:\/\/in.pinterest.com\/btechgeek\/","https:\/\/www.youtube.com\/channel\/UC9MlCqdJ3lKqz2p5114SDIg","https:\/\/www.facebook.com\/btechgeeks","https:\/\/twitter.com\/btech_geeks"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/python-programs.com\/#\/schema\/logo\/image\/","url":"https:\/\/python-programs.com\/wp-content\/uploads\/2020\/11\/BTechGeeks.png","contentUrl":"https:\/\/python-programs.com\/wp-content\/uploads\/2020\/11\/BTechGeeks.png","width":350,"height":70,"caption":"BTech Geeks"},"image":{"@id":"https:\/\/python-programs.com\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/python-programs.com\/#website","url":"https:\/\/python-programs.com\/","name":"Python Programs","description":"Python Programs with Examples, How To Guides on Python","publisher":{"@id":"https:\/\/python-programs.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/python-programs.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/#webpage","url":"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/","name":"Python: Read CSV into a list of lists or tuples or dictionaries | Import csv to list - Python Programs","isPartOf":{"@id":"https:\/\/python-programs.com\/#website"},"datePublished":"2021-05-10T04:02:08+00:00","dateModified":"2021-11-22T13:12:49+00:00","breadcrumb":{"@id":"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/python-programs.com\/"},{"@type":"ListItem","position":2,"name":"Python: Read CSV into a list of lists or tuples or dictionaries | Import csv to list"}]},{"@type":"Article","@id":"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/#article","isPartOf":{"@id":"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/#webpage"},"author":{"@id":"https:\/\/python-programs.com\/#\/schema\/person\/0f6d731bda7051ce3586f71299f391cd"},"headline":"Python: Read CSV into a list of lists or tuples or dictionaries | Import csv to list","datePublished":"2021-05-10T04:02:08+00:00","dateModified":"2021-11-22T13:12:49+00:00","mainEntityOfPage":{"@id":"https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/#webpage"},"wordCount":438,"commentCount":0,"publisher":{"@id":"https:\/\/python-programs.com\/#organization"},"articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/python-programs.com\/python-read-csv-into-a-list-of-lists-or-tuples-or-dictionaries-import-csv-to-list\/#respond"]}]},{"@type":"Person","@id":"https:\/\/python-programs.com\/#\/schema\/person\/0f6d731bda7051ce3586f71299f391cd","name":"Satyabrata Jena","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/python-programs.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c1bf8033ec357d085f41815bee1625cc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c1bf8033ec357d085f41815bee1625cc?s=96&d=mm&r=g","caption":"Satyabrata Jena"},"url":"https:\/\/python-programs.com\/author\/satyabrata\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts\/5285"}],"collection":[{"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/comments?post=5285"}],"version-history":[{"count":2,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts\/5285\/revisions"}],"predecessor-version":[{"id":5287,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts\/5285\/revisions\/5287"}],"wp:attachment":[{"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/media?parent=5285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/categories?post=5285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/tags?post=5285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}