{"id":113631,"date":"2025-11-26T14:55:32","date_gmt":"2025-11-26T09:25:32","guid":{"rendered":"https:\/\/www.mygreatlearning.com\/blog\/?page_id=113631"},"modified":"2025-11-26T14:11:28","modified_gmt":"2025-11-26T08:41:28","slug":"python-logical-operators","status":"publish","type":"page","link":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/","title":{"rendered":"\u00a0Python Logical Operators (and, or, not)"},"content":{"rendered":"\n<h1 id=\"python-logical-operators-and-or-not\">Python Logical Operators (and, or, not)<\/h1>\n\n<h2 id=\"what-are-logical-operators\">What Are Logical Operators?<\/h2>\n<p>\n    A logical operator is a keyword that connects two or more boolean expressions to produce a single <code>True<\/code> or <code>False<\/code> result. It helps you create complex conditions in <code>if<\/code> statements and <code>while<\/code> loops. This lets you write more precise and readable code. For example, you can check if a user is both an \"admin\" and is \"active\" before granting access.\n<\/p>\n\n\n<h2 id=\"1-the-and-operator\">1. The and Operator<\/h2>\n<p>\n    The <code>and<\/code> operator returns <code>True<\/code> only when both conditions are true. If either condition is false, the entire expression becomes <code>False<\/code>. Use this operator when you need multiple conditions to be met at the same time.\n<\/p>\n\n<h3 id=\"syntax-and-examples\">Syntax and Examples<\/h3>\n<p>\n    The <code>and<\/code> operator goes between two boolean values or expressions.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-and-syntax\" class=\"python-code-editor\">\n# Both are True -> True\nresult = True and True\nprint(result)  # Output: True\n\n# One is False -> False\nresult = True and False\nprint(result)  # Output: False\n\n# One is False -> False\nresult = False and True\nprint(result)  # Output: False\n\n# Both are False -> False\nresult = False and False\nprint(result)  # Output: False\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-and-syntax', 'output-and-syntax')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-and-syntax', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-and-syntax\" class=\"code-solution\">\n        <pre><code># Both are True -> True\nresult = True and True\nprint(result)\n\n# One is False -> False\nresult = True and False\nprint(result)\n\n# One is False -> False\nresult = False and True\nprint(result)\n\n# Both are False -> False\nresult = False and False\nprint(result)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-and-syntax\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-and-syntax\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h3 id=\"practical-use-case\">Practical Use Case<\/h3>\n<p>\n    A common use for <code>and<\/code> is checking if a value falls within a specific range. You can verify if a number is greater than a minimum and less than a maximum in a single line.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-and-practical\" class=\"python-code-editor\">\nage = 25\n\n# Check if the age is between 18 and 65\nif age >= 18 and age <= 65:\n    print(\"The person is of working age.\")\nelse:\n    print(\"The person is not of working age.\")\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-and-practical', 'output-and-practical')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-and-practical', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-and-practical\" class=\"code-solution\">\n        <pre><code>age = 25\n\nif age >= 18 and age <= 65:\n    print(\"The person is of working age.\")\nelse:\n    print(\"The person is not of working age.\")<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-and-practical\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-and-practical\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h2 id=\"2-the-or-operator\">2. The or Operator<\/h2>\n<p>\n    The <code>or<\/code> operator returns <code>True<\/code> if at least one condition is true. It only returns <code>False<\/code> if both conditions are false. Use this operator when you need your code to proceed if any one of several conditions is met.\n<\/p>\n\n<h3 id=\"syntax-and-examples\">Syntax and Examples<\/h3>\n<p>\n    Like <code>and<\/code>, the <code>or<\/code> operator goes between two boolean expressions.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-or-syntax\" class=\"python-code-editor\">\n# One is True -> True\nresult = True or True\nprint(result)  # Output: True\n\n# One is True -> True\nresult = True or False\nprint(result)  # Output: True\n\n# One is True -> True\nresult = False or True\nprint(result)  # Output: True\n\n# Both are False -> False\nresult = False or False\nprint(result)  # Output: False\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-or-syntax', 'output-or-syntax')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-or-syntax', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-or-syntax\" class=\"code-solution\">\n        <pre><code># One is True -> True\nresult = True or True\nprint(result)\n\n# One is True -> True\nresult = True or False\nprint(result)\n\n# One is True -> True\nresult = False or True\nprint(result)\n\n# Both are False -> False\nresult = False or False\nprint(result)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-or-syntax\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-or-syntax\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h3 id=\"practical-use-case\">Practical Use Case<\/h3>\n<p>\n    You can use <code>or<\/code> to check for multiple acceptable conditions. For example, you might want code to run only on the weekend.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-or-practical\" class=\"python-code-editor\">\nday = \"Sunday\"\n\n# Check if it's a weekend\nif day == \"Saturday\" or day == \"Sunday\":\n    print(\"It's the weekend!\")\nelse:\n    print(\"It's a weekday.\")\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-or-practical', 'output-or-practical')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-or-practical', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-or-practical\" class=\"code-solution\">\n        <pre><code>day = \"Sunday\"\n\nif day == \"Saturday\" or day == \"Sunday\":\n    print(\"It's the weekend!\")\nelse:\n    print(\"It's a weekday.\")<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-or-practical\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-or-practical\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n\n<h2 id=\"3-the-not-operator\">3. The not Operator<\/h2>\n<p>\n    Unlike <code>and<\/code> and <code>or<\/code>, the <code>not<\/code> operator works on a single expression. It flips the boolean value, turning <code>True<\/code> into <code>False<\/code> and <code>False<\/code> into <code>True<\/code>. It's useful for checking if a condition is absent.\n<\/p>\n\n<h3 id=\"syntax-and-examples\">Syntax and Examples<\/h3>\n<p>\n    The <code>not<\/code> operator goes before the boolean expression you want to flip.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-not-syntax\" class=\"python-code-editor\">\n# Flips True to False\nresult = not True\nprint(result)  # Output: False\n\n# Flips False to True\nresult = not False\nprint(result)  # Output: True\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-not-syntax', 'output-not-syntax')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-not-syntax', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-not-syntax\" class=\"code-solution\">\n        <pre><code># Flips True to False\nresult = not True\nprint(result)\n\n# Flips False to True\nresult = not False\nprint(result)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-not-syntax\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-not-syntax\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h3 id=\"practical-use-case\">Practical Use Case<\/h3>\n<p>\n    The <code>not<\/code> operator often makes code more readable. Instead of writing an awkward comparison like <code>is_logged_in == False<\/code>, you can write a cleaner version.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-not-practical\" class=\"python-code-editor\">\nis_logged_in = False\n\n# Check if the user is not logged in\nif not is_logged_in:\n    print(\"Please log in to continue.\")\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-not-practical', 'output-not-practical')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-not-practical', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-not-practical\" class=\"code-solution\">\n        <pre><code>is_logged_in = False\n\nif not is_logged_in:\n    print(\"Please log in to continue.\")<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-not-practical\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-not-practical\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n<h2 id=\"logical-operators-truth-table\">Logical Operators Truth Table<\/h2>\n<div style=\"overflow-x: auto; margin-bottom: 20px;\">\n    <table style=\"width: 100%; border-collapse: collapse; min-width: 600px;\">\n        <thead>\n            <tr style=\"background-color: #f4f4f4;\">\n                <th style=\"border: 1px solid #ddd; padding: 12px; text-align: left;\">Operand A<\/th>\n                <th style=\"border: 1px solid #ddd; padding: 12px; text-align: left;\">Operand B<\/th>\n                <th style=\"border: 1px solid #ddd; padding: 12px; text-align: left;\"><code>A and B<\/code><\/th>\n                <th style=\"border: 1px solid #ddd; padding: 12px; text-align: left;\"><code>A or B<\/code><\/th>\n                <th style=\"border: 1px solid #ddd; padding: 12px; text-align: left;\"><code>not A<\/code><\/th>\n            <\/tr>\n        <\/thead>\n        <tbody>\n            <tr>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>True<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>True<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>True<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>True<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>False<\/code><\/td>\n            <\/tr>\n            <tr>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>True<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>False<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>False<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>True<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>False<\/code><\/td>\n            <\/tr>\n            <tr>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>False<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>True<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>False<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>True<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>True<\/code><\/td>\n            <\/tr>\n            <tr>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>False<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>False<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>False<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>False<\/code><\/td>\n                <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>True<\/code><\/td>\n            <\/tr>\n        <\/tbody>\n    <\/table>\n<\/div>\n<h2 id=\"combining-logical-operators\">Combining Logical Operators<\/h2>\n<p>\n    You can combine <code>and<\/code>, <code>or<\/code>, and <code>not<\/code> to build specific conditional logic. When you mix them, Python evaluates them in a specific order: <code>not<\/code> first, then <code>and<\/code>, and finally <code>or<\/code>.\n<\/p>\n\n<h3 id=\"the-importance-of-parentheses\">The Importance of Parentheses<\/h3>\n<p>\n    Use parentheses <code>()<\/code> to group expressions and control the order of evaluation. This overrides the default precedence and makes your logic clearer to other developers.\n    Consider this expression without parentheses, where <code>and<\/code> runs first:\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-combine\" class=\"python-code-editor\">\nresult = True or False and False\n# 1. `and` is evaluated: False and False -> False\n# 2. `or` is evaluated: True or False -> True\nprint(\"Result without parentheses:\", result)  # Output: True\n\n# Now see how parentheses change the outcome by forcing or to run first:\nresult_with_parens = (True or False) and False\n# 1. Parentheses are evaluated: True or False -> True\n# 2. `and` is evaluated: True and False -> False\nprint(\"Result with parentheses:\", result_with_parens)  # Output: False\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-combine', 'output-combine')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-combine', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-combine\" class=\"code-solution\">\n        <pre><code>result = True or False and False\nprint(result)\n\nresult = (True or False) and False\nprint(result)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-combine\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-combine\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h2 id=\"short-circuit-evaluation\">Short-Circuit Evaluation<\/h2>\n<p>\n    Python's logical operators use short-circuit evaluation to work more efficiently. This means Python stops evaluating an expression as soon as it knows the final result.\n<\/p>\n<ul>\n    <li>For <code>and<\/code>: If the first expression is <code>False<\/code>, the overall result must be <code>False<\/code>, so Python skips the second expression.<\/li>\n    <li>For <code>or<\/code>: If the first expression is <code>True<\/code>, the overall result must be <code>True<\/code>, so Python skips the second expression.<\/li>\n<\/ul>\n\n<h3 id=\"why-it-matters\">Why It Matters<\/h3>\n<p>\n    Short-circuiting helps you write safer code that avoids errors. A common pattern is checking if an object exists before trying to access its attributes.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-short-circuit\" class=\"python-code-editor\">\nuser = None\n\n# This line would cause an error because `user` is None\n# if user.is_admin and user.has_permissions:\n\n# This is safe due to short-circuiting\n# Because `user is not None` is False, the second part is never checked.\nif user is not None and user.is_admin:\n    print(\"User is an admin.\")\nelse:\n    print(\"Could not verify user.\")\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-short-circuit', 'output-short-circuit')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-short-circuit', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-short-circuit\" class=\"code-solution\">\n        <pre><code>user = None\n\nif user is not None and user.is_admin:\n    print(\"User is an admin.\")\nelse:\n    print(\"Could not verify user.\")<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-short-circuit\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-short-circuit\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h2 id=\"final-challenge-access-control\">Final Challenge: Access Control<\/h2>\n<p>\n    Put your logical skills to the test. Create a permission check system.\n<\/p>\n<p>Your Task:<\/p>\n<ol>\n    <li>Create a variable <code>has_key<\/code> (set to <code>True<\/code>).<\/li>\n    <li>Create a variable <code>knows_password<\/code> (set to <code>False<\/code>).<\/li>\n    <li>Create a variable <code>is_banned<\/code> (set to <code>False<\/code>).<\/li>\n    <li>Access is granted if a user is NOT banned AND (has a key OR knows the password).<\/li>\n<\/ol>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-final\" class=\"python-code-editor\">\n# TODO: Create variables\n# has_key = ...\n# knows_password = ...\n# is_banned = ...\n\n# TODO: Check access\n# access_granted = ...\n\n# print(access_granted)\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-final', 'output-final')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-final', this)\">Show Solution<\/button>\n    <\/div>\n\n    <div id=\"solution-final\" class=\"code-solution\">\n        <pre><code>has_key = True\nknows_password = False\nis_banned = False\n\naccess_granted = not is_banned and (has_key or knows_password)\n\nprint(access_granted)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-final\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-final\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<div class=\"cta-final\">\n    <div class=\"cta-final-header\">\n        <span class=\"cta-final-trophy\">\ud83c\udfc6<\/span>\n        <h2 id=\"lesson-completed\">Lesson Completed<\/h2>\n    <\/div>\n\n    <p class=\"cta-final-intro\">\n        You have successfully learned about Python Logical Operators (<code>and<\/code>, <code>or<\/code>, <code>not<\/code>), short-circuit evaluation, and how to combine them for complex logic.\n    <\/p>\n\n    <div class=\"cta-final-grid\">\n        <div class=\"cta-final-option\">\n            <div class=\"cta-final-option-header\">\n                <span>\ud83d\udcd8<\/span>\n                <h4 id=\"full-python-course\">Full Python Course<\/h4>\n            <\/div>\n            <p>Master Python with 11+ hours of content, 50+ exercises, and real-world projects.<\/p>\n            <a href=\"https:\/\/www.mygreatlearning.com\/academy\/premium\/master-python-programming?utm_source=blog\" class=\"cta-final-button-primary\">Enroll Now<\/a>\n        <\/div>\n\n        <div class=\"cta-final-option\" id=\"pt-next-lesson-container\">\n            <div class=\"cta-final-option-header\">\n                <span>\ud83d\udcdd<\/span>\n                <h4 id=\"next-lesson\">Next Lesson<\/h4>\n            <\/div>\n            <p id=\"pt-next-lesson-text\">Continue with the next lesson on Python Control Flow.<\/p>\n            <a href=\"#\" id=\"pt-next-lesson-button\" class=\"cta-final-button-secondary\">Next Lesson -><\/a>\n        <\/div>\n    <\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn Python logical operators and, or, not with clear examples. Understand boolean logic, short circuit evaluation, operator precedence, and build precise conditional statements.<\/p>\n","protected":false},"author":41,"featured_media":113644,"parent":113156,"menu_order":17,"comment_status":"closed","ping_status":"closed","template":"templates\/python-tutorial.php","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","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":"","ast-disable-related-posts":"","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":"set","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":[25860],"tags":[36796,36893],"class_list":["post-113631","page","type-page","status-publish","has-post-thumbnail","hentry","category-software","tag-python","tag-python-tutorial"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>\u00a0Python Logical Operators (and, or, not)<\/title>\n<meta name=\"description\" content=\"Learn Python logical operators and, or, not with clear examples. Understand boolean logic, short circuit evaluation, operator precedence, and build precise conditional statements.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u00a0Python Logical Operators (and, or, not)\" \/>\n<meta property=\"og:description\" content=\"Learn Python logical operators and, or, not with clear examples. Understand boolean logic, short circuit evaluation, operator precedence, and build precise conditional statements.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/\" \/>\n<meta property=\"og:site_name\" content=\"Great Learning Blog: Free Resources what Matters to shape your Career!\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/GreatLearningOfficial\/\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"872\" \/>\n\t<meta property=\"og:image:height\" content=\"491\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@Great_Learning\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-logical-operators\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-logical-operators\\\/\"},\"author\":{\"name\":\"Great Learning Editorial Team\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\"},\"headline\":\"\u00a0Python Logical Operators (and, or, not)\",\"datePublished\":\"2025-11-26T09:25:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-logical-operators\\\/\"},\"wordCount\":881,\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-logical-operators\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/python-logical-operators.webp\",\"keywords\":[\"python\",\"python-tutorial\"],\"articleSection\":[\"IT\\\/Software Development\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-logical-operators\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-logical-operators\\\/\",\"name\":\"\u00a0Python Logical Operators (and, or, not)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-logical-operators\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-logical-operators\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/python-logical-operators.webp\",\"datePublished\":\"2025-11-26T09:25:32+00:00\",\"description\":\"Learn Python logical operators and, or, not with clear examples. Understand boolean logic, short circuit evaluation, operator precedence, and build precise conditional statements.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-logical-operators\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-logical-operators\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-logical-operators\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/python-logical-operators.webp\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/python-logical-operators.webp\",\"width\":872,\"height\":491,\"caption\":\"Python Logical Operators\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-logical-operators\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Tutorial\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u00a0Python Logical Operators (and, or, not)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"name\":\"Great Learning Blog\",\"description\":\"Learn, Upskill &amp; Career Development Guide and Resources\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"alternateName\":\"Great Learning\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\",\"name\":\"Great Learning\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"width\":900,\"height\":900,\"caption\":\"Great Learning\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/GreatLearningOfficial\\\/\",\"https:\\\/\\\/x.com\\\/Great_Learning\",\"https:\\\/\\\/www.instagram.com\\\/greatlearningofficial\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/in.pinterest.com\\\/greatlearning12\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/beaconelearning\\\/\"],\"description\":\"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.\",\"email\":\"info@mygreatlearning.com\",\"legalName\":\"Great Learning Education Services Pvt. Ltd\",\"foundingDate\":\"2013-11-29\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"1001\",\"maxValue\":\"5000\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\",\"name\":\"Great Learning Editorial Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"caption\":\"Great Learning Editorial Team\"},\"description\":\"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.\",\"sameAs\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/\",\"https:\\\/\\\/in.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/Great_Learning\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCObs0kLIrDjX2LLSybqNaEA\"],\"award\":[\"Best EdTech Company of the Year 2024\",\"Education Economictimes Outstanding Education\\\/Edtech Solution Provider of the Year 2024\",\"Leading E-learning Platform 2024\"],\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/author\\\/greatlearning\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u00a0Python Logical Operators (and, or, not)","description":"Learn Python logical operators and, or, not with clear examples. Understand boolean logic, short circuit evaluation, operator precedence, and build precise conditional statements.","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:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/","og_locale":"en_US","og_type":"article","og_title":"\u00a0Python Logical Operators (and, or, not)","og_description":"Learn Python logical operators and, or, not with clear examples. Understand boolean logic, short circuit evaluation, operator precedence, and build precise conditional statements.","og_url":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/","og_site_name":"Great Learning Blog: Free Resources what Matters to shape your Career!","article_publisher":"https:\/\/www.facebook.com\/GreatLearningOfficial\/","og_image":[{"width":872,"height":491,"url":"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_site":"@Great_Learning","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/#article","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/"},"author":{"name":"Great Learning Editorial Team","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad"},"headline":"\u00a0Python Logical Operators (and, or, not)","datePublished":"2025-11-26T09:25:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/"},"wordCount":881,"publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators.webp","keywords":["python","python-tutorial"],"articleSection":["IT\/Software Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/","url":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/","name":"\u00a0Python Logical Operators (and, or, not)","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/#primaryimage"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators.webp","datePublished":"2025-11-26T09:25:32+00:00","description":"Learn Python logical operators and, or, not with clear examples. Understand boolean logic, short circuit evaluation, operator precedence, and build precise conditional statements.","breadcrumb":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/#primaryimage","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators.webp","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators.webp","width":872,"height":491,"caption":"Python Logical Operators"},{"@type":"BreadcrumbList","@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-logical-operators\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/www.mygreatlearning.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Python Tutorial","item":"https:\/\/www.mygreatlearning.com\/blog\/python\/"},{"@type":"ListItem","position":3,"name":"\u00a0Python Logical Operators (and, or, not)"}]},{"@type":"WebSite","@id":"https:\/\/www.mygreatlearning.com\/blog\/#website","url":"https:\/\/www.mygreatlearning.com\/blog\/","name":"Great Learning Blog","description":"Learn, Upskill &amp; Career Development Guide and Resources","publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"alternateName":"Great Learning","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mygreatlearning.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization","name":"Great Learning","url":"https:\/\/www.mygreatlearning.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","width":900,"height":900,"caption":"Great Learning"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/GreatLearningOfficial\/","https:\/\/x.com\/Great_Learning","https:\/\/www.instagram.com\/greatlearningofficial\/","https:\/\/www.linkedin.com\/school\/great-learning\/","https:\/\/in.pinterest.com\/greatlearning12\/","https:\/\/www.youtube.com\/user\/beaconelearning\/"],"description":"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.","email":"info@mygreatlearning.com","legalName":"Great Learning Education Services Pvt. Ltd","foundingDate":"2013-11-29","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"1001","maxValue":"5000"}},{"@type":"Person","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad","name":"Great Learning Editorial Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","caption":"Great Learning Editorial Team"},"description":"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.","sameAs":["https:\/\/www.mygreatlearning.com\/","https:\/\/in.linkedin.com\/school\/great-learning\/","https:\/\/x.com\/https:\/\/twitter.com\/Great_Learning","https:\/\/www.youtube.com\/channel\/UCObs0kLIrDjX2LLSybqNaEA"],"award":["Best EdTech Company of the Year 2024","Education Economictimes Outstanding Education\/Edtech Solution Provider of the Year 2024","Leading E-learning Platform 2024"],"url":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"}]}},"uagb_featured_image_src":{"full":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators.webp",872,491,false],"thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators-150x150.webp",150,150,true],"medium":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators-300x169.webp",300,169,true],"medium_large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators-768x432.webp",768,432,true],"large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators.webp",872,491,false],"1536x1536":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators.webp",872,491,false],"2048x2048":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators.webp",872,491,false],"web-stories-poster-portrait":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators-640x491.webp",640,491,true],"web-stories-publisher-logo":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators-96x96.webp",96,96,true],"web-stories-thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-logical-operators-150x84.webp",150,84,true]},"uagb_author_info":{"display_name":"Great Learning Editorial Team","author_link":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"},"uagb_comment_info":0,"uagb_excerpt":"Learn Python logical operators and, or, not with clear examples. Understand boolean logic, short circuit evaluation, operator precedence, and build precise conditional statements.","_links":{"self":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages\/113631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/comments?post=113631"}],"version-history":[{"count":12,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages\/113631\/revisions"}],"predecessor-version":[{"id":113636,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages\/113631\/revisions\/113636"}],"up":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages\/113156"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media\/113644"}],"wp:attachment":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media?parent=113631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/categories?post=113631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/tags?post=113631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}