{"id":31709,"date":"2024-11-01T09:01:59","date_gmt":"2024-11-01T09:01:59","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=31709"},"modified":"2024-11-01T11:48:35","modified_gmt":"2024-11-01T11:48:35","slug":"python-course-chapter-04-input-and-output-of-python","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/31709\/","title":{"rendered":"Python Course: Chapter 04 Input and Output of Python"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This course covers the input\/output (I\/O) system in Python in detail. I\/O plays an important role in controlling the flow of data, enabling interaction between the user and the program, as well as connections with the file system. This chapter will cover a variety of Python input\/output mechanisms, from basic console input\/output methods to handling files and exception handling.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Console Input\/Output<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1.1 print() function<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The most commonly used function for outputting to the console in Python is the <code>print()<\/code> function. This function allows you to print various types of data to the standard output device.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(\"Hello, World!\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The code above prints &#8220;Hello, World!&#8221; to the console. The <code>print()<\/code> function can take multiple arguments and, by default, adds a space between them when printing.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(\"Hello,\", \"Python!\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The code above prints &#8220;Hello, Python!&#8221;. The <code>print()<\/code> function provides options to easily customize the default printing behavior. For example, you can change the delimiter between outputs and the end of the output.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(\"Python\", \"Programming\", sep=\"-\", end=\"!\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The code above prints &#8220;Python-Programming!&#8221;. The <code>sep<\/code> parameter specifies the separator between outputs, while the <code>end<\/code> parameter specifies the string to append at the end of the output.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.2 input() function<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>input()<\/code> function is used to receive user input from the standard input device. The string that the user enters in the console is returned when the <code>input()<\/code> function ends. By default, all input is received in the form of strings.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = input(\"Enter your name: \")\nprint(\"Hello,\", name)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The code above prompts the user for their name and uses the entered name to output a greeting. If the entered data needs to be used as a numeric type, you must perform type conversion using the <code>int()<\/code> or <code>float()<\/code> functions.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age = int(input(\"Enter your age: \"))\nprint(\"You are\", age, \"years old.\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The code above prompts for age input and uses it after converting to an integer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. File Input\/Output<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">2.1 Opening a File<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The way to open a file is by using the <code>open()<\/code> function. The <code>open()<\/code> function takes the filename and mode as arguments. The main modes are as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>'r'<\/code>: Read mode<\/li>\n\n\n\n<li><code>'w'<\/code>: Write mode (overwrites existing file content)<\/li>\n\n\n\n<li><code>'a'<\/code>: Append mode (keeps existing content and adds new)<\/li>\n\n\n\n<li><code>'b'<\/code>: Binary mode (read\/write binary files)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">When a file is opened, a file object is created that allows file manipulation. Generally, after finishing file processing, you should call the <code>close()<\/code> method to close the file. This releases resources and prevents data loss.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>file = open(\"example.txt\", 'r')\ncontent = file.read()\nprint(content)\nfile.close()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The code above opens the <code>example.txt<\/code> file in read mode, reads the file content, and prints it. Finally, the <code>close()<\/code> method is used to close the file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.2 Reading a File<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">There are several methods to read the contents of a file, and the following are the most commonly used methods:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>read()<\/code>: Reads the entire content of the file as a single string.<\/li>\n\n\n\n<li><code>readline()<\/code>: Reads a single line from the file. This includes the newline character.<\/li>\n\n\n\n<li><code>readlines()<\/code>: Returns a list containing each line of the file as an element.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>file = open(\"example.txt\", 'r')\nline = file.readline()\nwhile line:\n    print(line, end='')\n    line = file.readline()\nfile.close()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The code above reads and prints the file line by line. It reads each line until reaching the end of the file using a <code>while<\/code> loop. Since the newline character is included, the <code>end<\/code> parameter of the <code>print()<\/code> function is set to an empty string.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.3 Writing to a File<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To write data to a file, it needs to be opened in &#8216;w&#8217; or &#8216;a&#8217; mode. The &#8216;w&#8217; mode overwrites the content of the file, while the &#8216;a&#8217; mode adds content to the end of the existing file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>file = open(\"example.txt\", 'w')\nfile.write(\"This is a new line.\\n\")\nfile.write(\"Writing to files is easy.\\n\")\nfile.close()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The code above erases the existing content of the file and adds two new lines. When writing to a file, the <code>write()<\/code> method is used, and &#8216;\\n&#8217; is explicitly included for line breaks.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.4 Using with Statement for File I\/O<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Using the <code>with<\/code> statement for file I\/O makes the code cleaner and prevents mistakes by automatically closing the file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>with open(\"example.txt\", 'r') as file:\n    content = file.read()\n    print(content)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The code above opens the file using the <code>with<\/code> statement, and the file is automatically closed when exiting the <code>with<\/code> block. This provides the advantage of not needing to explicitly call the <code>close()<\/code> method.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. File Modes and Binary Files<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Unlike text files, binary files must be read and written using the &#8216;b&#8217; mode. This is used for manipulating binary data such as images, audio, and video files.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>with open(\"image.jpg\", 'rb') as binary_file:\n    binary_content = binary_file.read()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The code above opens an image file in binary mode and reads its contents. Similarly, &#8216;wb&#8217; mode is used for writing files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4. Exception Handling<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When dealing with files, various exceptions can occur, such as when a file does not exist or there are no read permissions. Handling these exceptions can prevent abnormal termination of the program.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try:\n    file = open(\"nonexistent_file.txt\", 'r')\nexcept FileNotFoundError:\n    print(\"The file does not exist.\")\nfinally:\n    file.close()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The code above handles the <code>FileNotFoundError<\/code> when a file does not exist, informing the user that the file is missing. The <code>finally<\/code> block executes regardless of whether an exception occurred and is where resource cleanup can take place if needed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When using the <code>with<\/code> statement, file closing is handled automatically, making exception handling somewhat simpler.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In this chapter, we covered various methods for input and output in Python. From the basics of console input\/output to file input\/output and exception handling, we learned how to effectively input and output data using Python. Since these I\/O functions are crucial in nearly all Python programs, more practice and utilization are necessary.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In upcoming lectures, more advanced topics will be covered, so make sure to thoroughly understand and practice the content presented in this chapter.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This course covers the input\/output (I\/O) system in Python in detail. I\/O plays an important role in controlling the flow of data, enabling interaction between the user and the program, as well as connections with the file system. This chapter will cover a variety of Python input\/output mechanisms, from basic console input\/output methods to handling &hellip; <a href=\"https:\/\/atmokpo.com\/w\/31709\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Python Course: Chapter 04 Input and Output of Python&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[98],"tags":[95],"class_list":["post-31709","post","type-post","status-publish","format-standard","hentry","category--en","tag--en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python Course: Chapter 04 Input and Output of Python - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/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:\/\/atmokpo.com\/w\/31709\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Course: Chapter 04 Input and Output of Python - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"This course covers the input\/output (I\/O) system in Python in detail. I\/O plays an important role in controlling the flow of data, enabling interaction between the user and the program, as well as connections with the file system. This chapter will cover a variety of Python input\/output mechanisms, from basic console input\/output methods to handling &hellip; \ub354 \ubcf4\uae30 &quot;Python Course: Chapter 04 Input and Output of Python&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/31709\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T09:01:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-01T11:48:35+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"5\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/31709\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31709\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Python Course: Chapter 04 Input and Output of Python\",\"datePublished\":\"2024-11-01T09:01:59+00:00\",\"dateModified\":\"2024-11-01T11:48:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31709\/\"},\"wordCount\":851,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"keywords\":[\"\ud30c\uc774\uc36c\uac15\uc88c\"],\"articleSection\":[\"Python Study\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/31709\/\",\"url\":\"https:\/\/atmokpo.com\/w\/31709\/\",\"name\":\"Python Course: Chapter 04 Input and Output of Python - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T09:01:59+00:00\",\"dateModified\":\"2024-11-01T11:48:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31709\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/31709\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/31709\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Course: Chapter 04 Input and Output of Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Course: Chapter 04 Input and Output of Python - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","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:\/\/atmokpo.com\/w\/31709\/","og_locale":"ko_KR","og_type":"article","og_title":"Python Course: Chapter 04 Input and Output of Python - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"This course covers the input\/output (I\/O) system in Python in detail. I\/O plays an important role in controlling the flow of data, enabling interaction between the user and the program, as well as connections with the file system. This chapter will cover a variety of Python input\/output mechanisms, from basic console input\/output methods to handling &hellip; \ub354 \ubcf4\uae30 \"Python Course: Chapter 04 Input and Output of Python\"","og_url":"https:\/\/atmokpo.com\/w\/31709\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T09:01:59+00:00","article_modified_time":"2024-11-01T11:48:35+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"5\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/31709\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/31709\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Python Course: Chapter 04 Input and Output of Python","datePublished":"2024-11-01T09:01:59+00:00","dateModified":"2024-11-01T11:48:35+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/31709\/"},"wordCount":851,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"keywords":["\ud30c\uc774\uc36c\uac15\uc88c"],"articleSection":["Python Study"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/31709\/","url":"https:\/\/atmokpo.com\/w\/31709\/","name":"Python Course: Chapter 04 Input and Output of Python - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T09:01:59+00:00","dateModified":"2024-11-01T11:48:35+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/31709\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/31709\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/31709\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Python Course: Chapter 04 Input and Output of Python"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/31709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=31709"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/31709\/revisions"}],"predecessor-version":[{"id":31710,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/31709\/revisions\/31710"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=31709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=31709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=31709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}