{"id":468,"date":"2024-11-15T04:31:53","date_gmt":"2024-11-15T04:31:53","guid":{"rendered":"https:\/\/techkubo.com\/python\/?p=468"},"modified":"2025-06-23T15:22:13","modified_gmt":"2025-06-23T15:22:13","slug":"python-comments","status":"publish","type":"post","link":"https:\/\/techkubo.com\/python\/python-comments\/","title":{"rendered":"Python Comments"},"content":{"rendered":"\n<p>Comments are an essential part of writing clear and maintainable code. They help you and others understand the purpose and functionality of your code. Comments are ignored by the Python interpreter, so they do not affect the program&#8217;s execution.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Single-Line Comments<\/strong><\/h2>\n\n\n\n<p>Single-line comments in Python start with the <code>#<\/code> symbol. Everything after the <code>#<\/code> on that line is considered a comment.<\/p>\n\n\n\n<p>In the example below, the first line is a comment. The comment after the <code>print()<\/code> statement is an inline comment that explains the code on the same line.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;seti&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\"># This is a single-line comment\nprint(&quot;Hello, World!&quot;)  # This is an inline comment<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Multi-Line Comments<\/strong><\/h2>\n\n\n\n<p>Python does not have a specific syntax for multi-line comments like some other languages. However, you can use consecutive single-line comments or use triple-quoted strings.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Using Consecutive Single-Line Comments<\/strong>:<\/li>\n<\/ol>\n\n\n\n<p>Each line of the multi-line comment starts with a <code>#<\/code> symbol.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;seti&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\"># This is a multi-line comment\n# Each line starts with a hash symbol\n# to make it a comment\nprint(&quot;Hello, World!&quot;)\n<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Using Triple-Quoted Strings<\/strong>: <\/li>\n<\/ol>\n\n\n\n<p>Triple-quoted strings can also be used as multi-line comments, even though they are technically string literals that are not assigned to a variable.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;seti&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">&quot;&quot;&quot;\nThis is a multi-line comment\nusing triple-quoted strings.\nIt can span multiple lines.\n&quot;&quot;&quot;\nprint(&quot;Hello, World!&quot;)\n<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Why Use Comments?<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Documentation:<\/strong> Provide explanations or descriptions of what your code does, making it easier to understand.<\/li>\n\n\n\n<li><strong>Debugging:<\/strong> Temporarily disable parts of your code to test or debug.<\/li>\n\n\n\n<li><strong>Readability:<\/strong> Improve code readability by explaining complex logic or indicating sections of your code.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Best Practices for Writing Comments<\/strong><\/h2>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Be Clear and Concise:<\/strong> Write comments that are easy to understand and get straight to the point.<\/li>\n\n\n\n<li><strong>Keep Comments Up to Date:<\/strong> Ensure your comments reflect the current state of your code.<\/li>\n\n\n\n<li><strong>Avoid Obvious Comments:<\/strong> Do not over-comment your code. Avoid comments that state the obvious.<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n\n\n\n<p>The first comment is unnecessary because it states the obvious. The second comment provides meaningful information about the purpose of the variable.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;seti&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\"># Bad comment\nx = 5  # This sets x to 5\n\n# Good comment\nx = 5  # Number of retries allowed\n<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Python Comments Example Code<\/strong><\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>In this example, comments are used to describe what each function does and to explain the main part of the code.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;seti&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\"># This function adds two numbers and returns the result\ndef add(a, b):\n    return a + b  # Return the sum of a and b\n\n# This function multiplies two numbers and returns the result\ndef multiply(a, b):\n    return a * b  # Return the product of a and b\n\n# Main code\nnum1 = 10  # First number\nnum2 = 5   # Second number\n\n# Call the add function and print the result\nprint(&quot;Addition:&quot;, add(num1, num2))\n\n# Call the multiply function and print the result\nprint(&quot;Multiplication:&quot;, multiply(num1, num2))\n<\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"558\" src=\"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2024\/11\/py-Comments-Image1.png\" alt=\"\" class=\"wp-image-470\" style=\"width:1200px;height:auto\" srcset=\"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2024\/11\/py-Comments-Image1.png 1024w, https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2024\/11\/py-Comments-Image1-300x163.png 300w, https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2024\/11\/py-Comments-Image1-768x419.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Python Labs<\/strong><\/h2>\n\n\n\n<iframe src=\"https:\/\/techkubo.com\/python-sim.html\" title=\"Try Python on TechKubo\" width=\"100%\" height=\"500\"><\/iframe>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Comments are an essential part of writing clear and maintainable code. They help you and others understand the purpose and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-468","post","type-post","status-publish","format-standard","hentry","category-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python Comments - Python Tutorial<\/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:\/\/techkubo.com\/python\/python-comments\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Comments - Python Tutorial\" \/>\n<meta property=\"og:description\" content=\"Comments are an essential part of writing clear and maintainable code. They help you and others understand the purpose and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techkubo.com\/python\/python-comments\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-15T04:31:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-23T15:22:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2024\/11\/py-Comments-Image1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"558\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Manong\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Manong\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/techkubo.com\/python\/python-comments\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/techkubo.com\/python\/python-comments\/\"},\"author\":{\"name\":\"Manong\",\"@id\":\"https:\/\/techkubo.com\/python\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965\"},\"headline\":\"Python Comments\",\"datePublished\":\"2024-11-15T04:31:53+00:00\",\"dateModified\":\"2025-06-23T15:22:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/techkubo.com\/python\/python-comments\/\"},\"wordCount\":299,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/techkubo.com\/python\/#organization\"},\"image\":{\"@id\":\"https:\/\/techkubo.com\/python\/python-comments\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2024\/11\/py-Comments-Image1.png\",\"articleSection\":[\"python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/techkubo.com\/python\/python-comments\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/techkubo.com\/python\/python-comments\/\",\"url\":\"https:\/\/techkubo.com\/python\/python-comments\/\",\"name\":\"Python Comments - Python Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/techkubo.com\/python\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/techkubo.com\/python\/python-comments\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/techkubo.com\/python\/python-comments\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2024\/11\/py-Comments-Image1.png\",\"datePublished\":\"2024-11-15T04:31:53+00:00\",\"dateModified\":\"2025-06-23T15:22:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/techkubo.com\/python\/python-comments\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/techkubo.com\/python\/python-comments\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techkubo.com\/python\/python-comments\/#primaryimage\",\"url\":\"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2024\/11\/py-Comments-Image1.png\",\"contentUrl\":\"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2024\/11\/py-Comments-Image1.png\",\"width\":1024,\"height\":558},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/techkubo.com\/python\/python-comments\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/techkubo.com\/python\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Comments\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/techkubo.com\/python\/#website\",\"url\":\"https:\/\/techkubo.com\/python\/\",\"name\":\"Python Tutorial\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/techkubo.com\/python\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/techkubo.com\/python\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/techkubo.com\/python\/#organization\",\"name\":\"Python Tutorial\",\"url\":\"https:\/\/techkubo.com\/python\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techkubo.com\/python\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2025\/01\/cropped-Techkubo-logo-1.png\",\"contentUrl\":\"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2025\/01\/cropped-Techkubo-logo-1.png\",\"width\":1620,\"height\":1156,\"caption\":\"Python Tutorial\"},\"image\":{\"@id\":\"https:\/\/techkubo.com\/python\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/techkubo.com\/python\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965\",\"name\":\"Manong\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techkubo.com\/python\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g\",\"caption\":\"Manong\"},\"sameAs\":[\"https:\/\/techkubo.com\"],\"url\":\"https:\/\/techkubo.com\/python\/author\/manong\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Comments - Python Tutorial","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:\/\/techkubo.com\/python\/python-comments\/","og_locale":"en_US","og_type":"article","og_title":"Python Comments - Python Tutorial","og_description":"Comments are an essential part of writing clear and maintainable code. They help you and others understand the purpose and [&hellip;]","og_url":"https:\/\/techkubo.com\/python\/python-comments\/","og_site_name":"Python Tutorial","article_published_time":"2024-11-15T04:31:53+00:00","article_modified_time":"2025-06-23T15:22:13+00:00","og_image":[{"width":1024,"height":558,"url":"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2024\/11\/py-Comments-Image1.png","type":"image\/png"}],"author":"Manong","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Manong","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techkubo.com\/python\/python-comments\/#article","isPartOf":{"@id":"https:\/\/techkubo.com\/python\/python-comments\/"},"author":{"name":"Manong","@id":"https:\/\/techkubo.com\/python\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965"},"headline":"Python Comments","datePublished":"2024-11-15T04:31:53+00:00","dateModified":"2025-06-23T15:22:13+00:00","mainEntityOfPage":{"@id":"https:\/\/techkubo.com\/python\/python-comments\/"},"wordCount":299,"commentCount":0,"publisher":{"@id":"https:\/\/techkubo.com\/python\/#organization"},"image":{"@id":"https:\/\/techkubo.com\/python\/python-comments\/#primaryimage"},"thumbnailUrl":"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2024\/11\/py-Comments-Image1.png","articleSection":["python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techkubo.com\/python\/python-comments\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techkubo.com\/python\/python-comments\/","url":"https:\/\/techkubo.com\/python\/python-comments\/","name":"Python Comments - Python Tutorial","isPartOf":{"@id":"https:\/\/techkubo.com\/python\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techkubo.com\/python\/python-comments\/#primaryimage"},"image":{"@id":"https:\/\/techkubo.com\/python\/python-comments\/#primaryimage"},"thumbnailUrl":"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2024\/11\/py-Comments-Image1.png","datePublished":"2024-11-15T04:31:53+00:00","dateModified":"2025-06-23T15:22:13+00:00","breadcrumb":{"@id":"https:\/\/techkubo.com\/python\/python-comments\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techkubo.com\/python\/python-comments\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techkubo.com\/python\/python-comments\/#primaryimage","url":"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2024\/11\/py-Comments-Image1.png","contentUrl":"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2024\/11\/py-Comments-Image1.png","width":1024,"height":558},{"@type":"BreadcrumbList","@id":"https:\/\/techkubo.com\/python\/python-comments\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techkubo.com\/python\/"},{"@type":"ListItem","position":2,"name":"Python Comments"}]},{"@type":"WebSite","@id":"https:\/\/techkubo.com\/python\/#website","url":"https:\/\/techkubo.com\/python\/","name":"Python Tutorial","description":"","publisher":{"@id":"https:\/\/techkubo.com\/python\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techkubo.com\/python\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techkubo.com\/python\/#organization","name":"Python Tutorial","url":"https:\/\/techkubo.com\/python\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techkubo.com\/python\/#\/schema\/logo\/image\/","url":"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2025\/01\/cropped-Techkubo-logo-1.png","contentUrl":"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2025\/01\/cropped-Techkubo-logo-1.png","width":1620,"height":1156,"caption":"Python Tutorial"},"image":{"@id":"https:\/\/techkubo.com\/python\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/techkubo.com\/python\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965","name":"Manong","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techkubo.com\/python\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g","caption":"Manong"},"sameAs":["https:\/\/techkubo.com"],"url":"https:\/\/techkubo.com\/python\/author\/manong\/"}]}},"_links":{"self":[{"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/posts\/468"}],"collection":[{"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/comments?post=468"}],"version-history":[{"count":5,"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/posts\/468\/revisions"}],"predecessor-version":[{"id":785,"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/posts\/468\/revisions\/785"}],"wp:attachment":[{"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/media?parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/categories?post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/tags?post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}