{"id":113718,"date":"2025-11-28T11:08:51","date_gmt":"2025-11-28T05:38:51","guid":{"rendered":"https:\/\/www.mygreatlearning.com\/blog\/?page_id=113718"},"modified":"2025-11-28T10:53:19","modified_gmt":"2025-11-28T05:23:19","slug":"python-membership-operators","status":"publish","type":"page","link":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-operators\/","title":{"rendered":"Python Membership Operators (in, not in)"},"content":{"rendered":"\n<h1 id=\"python-membership-operators-in-not-in\">Python Membership Operators (in, not in)<\/h1>\n\n<h2 id=\"what-are-membership-operators\">What Are Membership Operators?<\/h2>\n<p>\n    A membership operator in Python checks if a value exists within a sequence. It helps you answer questions like \"Is this number in my list?\" or \"Does this character appear in my string?\" You can write clean, readable code without needing a loop for a simple check. For example, the expression <code>'a'<\/code> <code>in<\/code> <code>'apple'<\/code> quickly confirms the letter is there.\n<\/p>\n<p>\n    The two membership operators are:\n<\/p>\n<ul>\n    <li><code>in<\/code>: Returns <code>True<\/code> if the specified value is found in the sequence.<\/li>\n    <li><code>not in<\/code>: Returns <code>True<\/code> if the specified value is not found in the sequence.<\/li>\n<\/ul>\n\n\n<h2 id=\"1-the-in-operator\">1. The 'in' Operator<\/h2>\n<p>\n    The <code>in<\/code> operator returns <code>True<\/code> if a value exists in a sequence and <code>False<\/code> otherwise. It's a simple and direct way to confirm an item's presence.\n<\/p>\n\n<h3 id=\"use-in-with-a-list\">Use <code>in<\/code> with a List<\/h3>\n<p>\n    You can check if an element is part of a list.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-in-list\" class=\"python-code-editor\">\n# Check for a number in a list\nnumbers = [10, 20, 30, 40, 50]\nresult = 20 in numbers\nprint(result)  # Output: True\n\n# Check for a string in a list\nfruits = [\"apple\", \"banana\", \"cherry\"]\nresult = \"orange\" in fruits\nprint(result)  # Output: False\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-in-list', 'output-in-list')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-in-list', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-in-list\" class=\"code-solution\">\n        <pre><code>numbers = [10, 20, 30, 40, 50]\nresult = 20 in numbers\nprint(result)\n\nfruits = [\"apple\", \"banana\", \"cherry\"]\nresult = \"orange\" in fruits\nprint(result)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-in-list\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-in-list\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h3 id=\"use-in-with-a-string\">Use <code>in<\/code> with a String<\/h3>\n<p>\n    The operator can also check for a character or a substring within a larger string.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-in-str\" class=\"python-code-editor\">\n# Check for a single character\ngreeting = \"hello world\"\nresult = \"w\" in greeting\nprint(result)  # Output: True\n\n# Check for a substring\nresult = \"world\" in greeting\nprint(result)  # Output: True\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-in-str', 'output-in-str')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-in-str', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-in-str\" class=\"code-solution\">\n        <pre><code>greeting = \"hello world\"\nresult = \"w\" in greeting\nprint(result)\n\nresult = \"world\" in greeting\nprint(result)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-in-str\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-in-str\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h3 id=\"use-in-with-a-tuple\">Use <code>in<\/code> with a Tuple<\/h3>\n<p>\n    Membership checks work the same way for tuples as they do for lists.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-in-tuple\" class=\"python-code-editor\">\n# Check for an item in a tuple\npermissions = (\"read\", \"write\", \"execute\")\nresult = \"read\" in permissions\nprint(result)  # Output: True\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-in-tuple', 'output-in-tuple')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-in-tuple', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-in-tuple\" class=\"code-solution\">\n        <pre><code>permissions = (\"read\", \"write\", \"execute\")\nresult = \"read\" in permissions\nprint(result)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-in-tuple\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-in-tuple\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h2 id=\"2-the-not-in-operator\">2. The 'not in' Operator<\/h2>\n<p>\n    The <code>not in<\/code> operator does the opposite of <code>in<\/code>. It returns <code>True<\/code> if a value does not exist in a sequence. This is useful for verifying an item's absence.\n<\/p>\n\n<h3 id=\"use-not-in-with-a-list\">Use <code>not in<\/code> with a List<\/h3>\n<p>\n    You can confirm that an element does not exist in a list.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-notin-list\" class=\"python-code-editor\">\n# Check that a number is not in a list\nnumbers = [10, 20, 30, 40, 50]\nresult = 100 not in numbers\nprint(result)  # Output: True\n\n# Check that a string is not in a list\nfruits = [\"apple\", \"banana\", \"cherry\"]\nresult = \"apple\" not in fruits\nprint(result)  # Output: False\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-notin-list', 'output-notin-list')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-notin-list', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-notin-list\" class=\"code-solution\">\n        <pre><code>numbers = [10, 20, 30, 40, 50]\nresult = 100 not in numbers\nprint(result)\n\nfruits = [\"apple\", \"banana\", \"cherry\"]\nresult = \"apple\" not in fruits\nprint(result)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-notin-list\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-notin-list\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h3 id=\"use-not-in-with-a-string\">Use <code>not in<\/code> with a String<\/h3>\n<p>\n    This operator can verify the absence of a character or substring.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-notin-str\" class=\"python-code-editor\">\n# Check for a missing character\nmessage = \"Python is fun\"\nresult = \"z\" not in message\nprint(result)  # Output: True\n\n# Check for a missing substring\nresult = \"java\" not in message\nprint(result)  # Output: True\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-notin-str', 'output-notin-str')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-notin-str', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-notin-str\" class=\"code-solution\">\n        <pre><code>message = \"Python is fun\"\nresult = \"z\" not in message\nprint(result)\n\nresult = \"java\" not in message\nprint(result)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-notin-str\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-notin-str\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n\n<h2 id=\"how-membership-operators-work-with-dictionaries\">How Membership Operators Work with Dictionaries<\/h2>\n<p>\n    When you use membership operators with a dictionary, they check the keys by default, not the values. Remember this rule because it's a common source of bugs for new developers.\n<\/p>\n\n<h3 id=\"checking-for-keys\">Checking for Keys<\/h3>\n<p>\n    To see if a key exists, use the operator directly on the dictionary.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-dict-key\" class=\"python-code-editor\">\nuser_profile = {\n    \"username\": \"alex\",\n    \"level\": 5,\n    \"active\": True\n}\n\n# Check if 'username' is a key\nkey_exists = \"username\" in user_profile\nprint(key_exists)  # Output: True\n\n# Check if 'email' is a key\nkey_missing = \"email\" not in user_profile\nprint(key_missing)  # Output: True\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-dict-key', 'output-dict-key')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-dict-key', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-dict-key\" class=\"code-solution\">\n        <pre><code>user_profile = {\n    \"username\": \"alex\",\n    \"level\": 5,\n    \"active\": True\n}\n\nkey_exists = \"username\" in user_profile\nprint(key_exists)\n\nkey_missing = \"email\" not in user_profile\nprint(key_missing)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-dict-key\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-dict-key\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h3 id=\"checking-for-values\">Checking for Values<\/h3>\n<p>\n    To check if a value exists in a dictionary, you must explicitly search the dictionary's values using the <code>.values()<\/code> method.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-dict-val\" class=\"python-code-editor\">\nuser_profile = {\n    \"username\": \"alex\",\n    \"level\": 5,\n    \"active\": True\n}\n\n# Check if the value 'alex' exists\nvalue_exists = \"alex\" in user_profile.values()\nprint(value_exists)  # Output: True\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-dict-val', 'output-dict-val')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-dict-val', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-dict-val\" class=\"code-solution\">\n        <pre><code>user_profile = {\n    \"username\": \"alex\",\n    \"level\": 5,\n    \"active\": True\n}\n\nvalue_exists = \"alex\" in user_profile.values()\nprint(value_exists)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-dict-val\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-dict-val\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h2 id=\"practical-use-cases\">Practical Use Cases<\/h2>\n<p>\n    You can combine membership operators with other Python features like <code>if<\/code> statements and list comprehensions to solve common problems.\n<\/p>\n\n<h3 id=\"conditional-logic-with-if-statements\">Conditional Logic with <code>if<\/code> Statements<\/h3>\n<p>\n    The most common use is controlling program flow with an <code>if<\/code> statement. This lets you execute code only if a certain condition is met.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-prac-if\" class=\"python-code-editor\">\nallowed_users = [\"alice\", \"bob\", \"charlie\"]\ncurrent_user = \"bob\"\n\nif current_user in allowed_users:\n    print(\"Access granted.\")\nelse:\n    print(\"Access denied.\")\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-prac-if', 'output-prac-if')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-prac-if', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-prac-if\" class=\"code-solution\">\n        <pre><code>allowed_users = [\"alice\", \"bob\", \"charlie\"]\ncurrent_user = \"bob\"\n\nif current_user in allowed_users:\n    print(\"Access granted.\")\nelse:\n    print(\"Access denied.\")<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-prac-if\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-prac-if\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h3 id=\"input-validation\">Input Validation<\/h3>\n<p>\n    You can use <code>in<\/code> to validate user input against a list of acceptable options.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-prac-input\" class=\"python-code-editor\">\n# Get user input (Simulated as 'a' for this example)\nchoice = \"a\" # input(\"Choose an option (a, b, c): \")\n\n# Validate the choice\nvalid_options = [\"a\", \"b\", \"c\"]\nif choice in valid_options:\n    print(f\"You selected option {choice}.\")\nelse:\n    print(\"Invalid option selected.\")\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-prac-input', 'output-prac-input')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-prac-input', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-prac-input\" class=\"code-solution\">\n        <pre><code># Get user input\nchoice = input(\"Choose an option (a, b, c): \")\n\n# Validate the choice\nvalid_options = [\"a\", \"b\", \"c\"]\nif choice in valid_options:\n    print(f\"You selected option {choice}.\")\nelse:\n    print(\"Invalid option selected.\")<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-prac-input\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-prac-input\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h3 id=\"filtering-data\">Filtering Data<\/h3>\n<p>\n    Membership operators are useful for filtering one sequence based on the contents of another. A list comprehension provides a concise way to do this.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-prac-filter\" class=\"python-code-editor\">\nall_products = [\"apple\", \"banana\", \"orange\", \"grape\", \"broccoli\"]\nfruits = [\"apple\", \"banana\", \"orange\", \"grape\"]\n\n# Create a new list containing only the fruits from all_products\nfruit_products = [product for product in all_products if product in fruits]\nprint(fruit_products)  # Output: ['apple', 'banana', 'orange', 'grape']\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-prac-filter', 'output-prac-filter')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-prac-filter', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-prac-filter\" class=\"code-solution\">\n        <pre><code>all_products = [\"apple\", \"banana\", \"orange\", \"grape\", \"broccoli\"]\nfruits = [\"apple\", \"banana\", \"orange\", \"grape\"]\n\nfruit_products = [product for product in all_products if product in fruits]\nprint(fruit_products)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-prac-filter\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-prac-filter\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h2 id=\"performance-considerations\">Performance Considerations<\/h2>\n<p>\n    The performance of a membership check depends on the data type. Performance means how long it takes to find an item, especially in a large collection.\n<\/p>\n<ul>\n    <li><strong>Lists and Tuples:<\/strong> Checking for an item has a time complexity of <code>O(n)<\/code>. This means the search time grows linearly with the size of the sequence because Python may have to check every element.<\/li>\n    <li><strong>Sets and Dictionaries:<\/strong> Checking for an item in a set or a dictionary key has an average time complexity of <code>O(1)<\/code>. This means the time is constant, regardless of the sequence size, because these types use a hash table for fast lookups.<\/li>\n<\/ul>\n<p>\n    If you need to perform many membership checks on a large collection, convert it to a set first. The initial conversion takes time, but later lookups will be much faster.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-perf\" class=\"python-code-editor\">\n# Inefficient for large lists\nlarge_list = list(range(1000000))\nis_present = 999999 in large_list  # This can be slow\nprint(\"Found in list:\", is_present)\n\n# Much more efficient\nlarge_set = set(large_list)\nis_present = 999999 in large_set  # This is very fast\nprint(\"Found in set:\", is_present)\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-perf', 'output-perf')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-perf', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-perf\" class=\"code-solution\">\n        <pre><code>large_list = list(range(1000000))\nis_present = 999999 in large_list\n\nlarge_set = set(large_list)\nis_present = 999999 in large_set<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-perf\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-perf\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h2 id=\"final-challenge-security-check\">Final Challenge: Security Check<\/h2>\n<p>\n    Create a security checkpoint script.\n<\/p>\n<p>Your Task:<\/p>\n<ol>\n    <li>Define a list of <code>banned_items<\/code> containing \"knife\", \"explosive\", and \"poison\".<\/li>\n    <li>Define a variable <code>backpack_item<\/code> with the value \"knife\".<\/li>\n    <li>Use <code>in<\/code> to check if the <code>backpack_item<\/code> is in the <code>banned_items<\/code> list.<\/li>\n<\/ol>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-final\" class=\"python-code-editor\">\n# TODO: Create banned_items list\n# banned_items = ...\n\n# TODO: Create backpack_item\n# backpack_item = ...\n\n# TODO: Check if item is in list\n# is_banned = ...\n\n# print(is_banned)\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>banned_items = [\"knife\", \"explosive\", \"poison\"]\nbackpack_item = \"knife\"\n\nis_banned = backpack_item in banned_items\n\nprint(is_banned)<\/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 Membership Operators (<code>in<\/code>, <code>not in<\/code>), how they work with lists, strings, and dictionaries, and their performance differences.\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 Bitwise Operators.<\/p>\n            <a href=\"#\" id=\"pt-next-lesson-button\" class=\"cta-final-button-secondary\">Next Lesson -><\/a>\n        <\/div>\n    <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learn to use Python's in and not in operators to check for values in sequences like lists, strings, and dictionaries with practical examples.<\/p>\n","protected":false},"author":41,"featured_media":113727,"parent":113156,"menu_order":19,"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-113718","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>Python Membership Operators (in, not in)<\/title>\n<meta name=\"description\" content=\"Learn to use Python&#039;s in and not in operators to check for values in sequences like lists, strings, and dictionaries with practical examples.\" \/>\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-membership-operators\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Membership Operators (in, not in)\" \/>\n<meta property=\"og:description\" content=\"Learn to use Python&#039;s in and not in operators to check for values in sequences like lists, strings, and dictionaries with practical examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-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-memebership-operators.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1408\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\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=\"6 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-membership-operators\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-membership-operators\\\/\"},\"author\":{\"name\":\"Great Learning Editorial Team\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\"},\"headline\":\"Python Membership Operators (in, not in)\",\"datePublished\":\"2025-11-28T05:38:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-membership-operators\\\/\"},\"wordCount\":1080,\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-membership-operators\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/python-memebership-operators.webp\",\"keywords\":[\"python\",\"python-tutorial\"],\"articleSection\":[\"IT\\\/Software Development\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-membership-operators\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-membership-operators\\\/\",\"name\":\"Python Membership Operators (in, not in)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-membership-operators\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-membership-operators\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/python-memebership-operators.webp\",\"datePublished\":\"2025-11-28T05:38:51+00:00\",\"description\":\"Learn to use Python's in and not in operators to check for values in sequences like lists, strings, and dictionaries with practical examples.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-membership-operators\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-membership-operators\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-membership-operators\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/python-memebership-operators.webp\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/python-memebership-operators.webp\",\"width\":1408,\"height\":768,\"caption\":\"Python Membership Operators (in, not in)\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-membership-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\":\"Python Membership Operators (in, not in)\"}]},{\"@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":"Python Membership Operators (in, not in)","description":"Learn to use Python's in and not in operators to check for values in sequences like lists, strings, and dictionaries with practical examples.","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-membership-operators\/","og_locale":"en_US","og_type":"article","og_title":"Python Membership Operators (in, not in)","og_description":"Learn to use Python's in and not in operators to check for values in sequences like lists, strings, and dictionaries with practical examples.","og_url":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-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":1408,"height":768,"url":"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-memebership-operators.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_site":"@Great_Learning","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-operators\/#article","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-operators\/"},"author":{"name":"Great Learning Editorial Team","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad"},"headline":"Python Membership Operators (in, not in)","datePublished":"2025-11-28T05:38:51+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-operators\/"},"wordCount":1080,"publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-operators\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-memebership-operators.webp","keywords":["python","python-tutorial"],"articleSection":["IT\/Software Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-operators\/","url":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-operators\/","name":"Python Membership Operators (in, not in)","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-operators\/#primaryimage"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-operators\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-memebership-operators.webp","datePublished":"2025-11-28T05:38:51+00:00","description":"Learn to use Python's in and not in operators to check for values in sequences like lists, strings, and dictionaries with practical examples.","breadcrumb":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-operators\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-operators\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-operators\/#primaryimage","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-memebership-operators.webp","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-memebership-operators.webp","width":1408,"height":768,"caption":"Python Membership Operators (in, not in)"},{"@type":"BreadcrumbList","@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-membership-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":"Python Membership Operators (in, not in)"}]},{"@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-memebership-operators.webp",1408,768,false],"thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-memebership-operators-150x150.webp",150,150,true],"medium":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-memebership-operators-300x164.webp",300,164,true],"medium_large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-memebership-operators-768x419.webp",768,419,true],"large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-memebership-operators-1024x559.webp",1024,559,true],"1536x1536":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-memebership-operators.webp",1408,768,false],"2048x2048":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-memebership-operators.webp",1408,768,false],"web-stories-poster-portrait":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-memebership-operators-640x768.webp",640,768,true],"web-stories-publisher-logo":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-memebership-operators-96x96.webp",96,96,true],"web-stories-thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-memebership-operators-150x82.webp",150,82,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 to use Python's in and not in operators to check for values in sequences like lists, strings, and dictionaries with practical examples.","_links":{"self":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages\/113718","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=113718"}],"version-history":[{"count":8,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages\/113718\/revisions"}],"predecessor-version":[{"id":113725,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages\/113718\/revisions\/113725"}],"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\/113727"}],"wp:attachment":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media?parent=113718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/categories?post=113718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/tags?post=113718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}