{"id":17355,"date":"2020-12-06T22:56:13","date_gmt":"2020-12-07T06:56:13","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=17355"},"modified":"2023-12-01T04:05:40","modified_gmt":"2023-12-01T12:05:40","slug":"python-find","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-find\/","title":{"rendered":"Python Find: A Guide"},"content":{"rendered":"\n<p><em>The Python find() method locates the index position at which the first instance of a string occurs in another string. find() returns -1 if a value cannot be found.<\/em><em> Otherwise, it returns the starting index position of the value for which you are searching.<\/em><\/p>\n\n\n\n<p>Finding a substring in a string is a common operation in Python. For instance, suppose you have a string containing a list of your favorite book titles. You may want to find a certain book in that list, and return the position where that book appears in the list.\n\n<\/p>\n\n\n\n<p>That\u2019s where the Python string <em>find()<\/em> method comes in. The <em>find()<\/em> method allows you to search for a substring in Python. This method returns the index position of the first occurrence of that substring in the string.\n\n<\/p>\n\n\n\n<p>This tutorial will discuss, with examples, the basics of string indexing in Python. We&#8217;ll then use the Python <em>find()<\/em> method to find a substring within a larger string.\n\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Indexing: A Refresher<\/h2>\n\n\n\n<p>A <a href=\"https:\/\/careerkarma.com\/blog\/python-substring\/\">Python string<\/a> is a sequence that contains one or more individual characters. Strings can contain letters, white spaces, symbols, or numbers.<\/p>\n\n\n\n<p>Consider the following string:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>company = &quot;Career Karma&quot;<\/pre><\/div>\n\n\n\n<p>This string consists of 12 characters, each of which has its own position in the string. Here is the index breakdown for this string:<\/p>\n\n\n\n<table class=\"wp-block-table course-info-table\"><tbody><tr><td><strong>C<\/strong><\/td><td><strong>a<\/strong><\/td><td><strong>r<\/strong><\/td><td><strong>e<\/strong><\/td><td><strong>e<\/strong><\/td><td><strong>r<\/strong><\/td><td><br><\/td><td><strong>K<\/strong><\/td><td><strong>a<\/strong><\/td><td><strong>r<\/strong><\/td><td><strong>m<\/strong><\/td><td><strong>a<\/strong><\/td><\/tr><tr><td>0<\/td><td>1<\/td><td>2<\/td><td>3<\/td><td>4<\/td><td>5<\/td><td>6<\/td><td>7<\/td><td>8<\/td><td>9<\/td><td>10<\/td><td>11<\/td><\/tr><\/tbody><\/table>\n\n\n\n<h2 class=\"wp-block-heading\">Python find() Method<\/h2>\n\n\n\n<p>The Python find() method finds the first time a particular string appears in another string. If a value is not found, the find() method returns -1. find() is very similar to the <a href=\"https:\/\/careerkarma.com\/blog\/python-index\/\">Python index() method<\/a> but index() raises an exception if a value is not found.\n\n<\/p>\n\n\n\n<p>The syntax for the <em>find()<\/em> method is as follows:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>string_name.find(string_to_find, start, end)<\/pre><\/div>\n\n\n\n<p>The <em>find()<\/em> method accepts three parameters:\n\n<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>string_to_find<\/strong>: The substring whose starting index value you want to find in a string. (Required)<\/li><li><strong>start<\/strong>: The index position at which the search should begin. The default for this parameter is 0. (Optional)<\/li><li><strong>end<\/strong>: The index position at which the search should end. (Optional)<\/li><\/ul>\n\n\n\n<p>The <em>find()<\/em> method returns the lowest index at which the first occurrence of a string starts. If the substring for which you are searching cannot be found within a string, the value -1 is returned.<\/p>\n\n\n\n<p>You could use a <a href=\"https:\/\/careerkarma.com\/blog\/python-if-else\/\">Python if statement<\/a> to evaluate whether -1 is returned. This will let you handle any issues that arise if the value for which you are searching cannot be found.<\/p>\n\n\n\n<p>Now we know the syntax for the <em>find()<\/em> method, let\u2019s explore an example that showcases this method being used.\n\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Find Examples<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Python find() Example: Find a String<\/h3>\n\n\n\n<p>Let\u2019s suppose we have a string that contains a list of the best-selling ice cream flavors at a local ice cream store.&nbsp;\n\n<\/p>\n\n\n\n<p>This string appears as follows:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>flavors = &quot;Vanilla, Buttered Pecan, Cookies and Cream, Chocolate, Choc Chip, Strawberry&quot;<\/pre><\/div>\n\n\n\n<p>Our data is formatted as a string (denoted by the quotation marks).  <\/p>\n\n\n\n<p>Suppose we want to find where the entry \u201cCookies and Cream\u201d appears in our string. We are interested in learning more about how popular the cookies and cream flavor is. To do so, we could use the <em>find()<\/em> built-in function. Here\u2019s the code we would use to find this entry in our string:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>flavors = &quot;Vanilla, Buttered Pecan, Cookies and Cream, Chocolate, Choc Chip, Strawberry&quot;\n\ncookies_and_cream = flavors.find(&quot;Cookies and Cream&quot;)\n\nprint(cookies_and_cream)<\/pre><\/div>\n\n\n\n<p>Our code returns: 25.<\/p>\n\n\n\n<p>First, we declare a <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">Python variable<\/a> called \u201cflavors\u201d. This variable stores the list of the most popular flavors sold at a local ice cream store.<\/p>\n\n\n\n<p>Next, we use the <em>find()<\/em> method to find the term \u201cCookies and Cream\u201d in our list, and assign the value returned by the <em>find()<\/em> method to the variable \u201ccookies_and_cream.\u201d&nbsp;\n\n<\/p>\n\n\n\n<p>Our code returned the value 25, which means that \u201cCookies and Cream\u201d starts at the index position 25 in our list.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Python find() Example: Start a Search at a Particular Index<\/h3>\n\n\n\n<p>Now, suppose we want to check whether \u201cChoc Chip\u201d appears after \u201cCookies and Cream\u201d in our list. We know that \u201cCookies and Cream\u201d starts at index position 25, so we want to search for \u201cChoc Chip\u201d after that index position.\n\n<\/p>\n\n\n\n<p>We could do so using the following code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>flavors = &quot;Vanilla, Buttered Pecan, Cookies and Cream, Chocolate, Choc Chip, Strawberry&quot;\n\nchoc_chip = flavors.find(&quot;Choc Chip&quot;, 25)\n\nprint(choc_chip)<\/pre><\/div>\n\n\n\n<p>Our code returns: 55. We use <em>find()<\/em> to find \u201cChoc Chip\u201d in our \u201cflavors\u201d string. We specify one parameter, 25, which states where our search should begin in the string.\n\n<\/p>\n\n\n\n<p>Because \u201cChoc Chip\u201d appears after \u201cCookies and Cream\u201d, a positive value was returned. This value is the index position where \u201cChoc Chip\u201d appears in the list.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Python find() Example: Search Between a Particular Range<\/h3>\n\n\n\n<p>Now, suppose we want to search for whether \u201cButtered Pecan\u201d appears before \u201cCookies and Cream\u201d. We know that \u201cCookies and Cream\u201d starts at index position 25, so we don\u2019t want to search for \u201cButtered Pecan\u201d after that point. To perform this search, we could use the following code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>flavors = &quot;Vanilla, Buttered Pecan, Cookies and Cream, Chocolate, Choc Chip, Strawberry&quot;\n\nbuttered_pecan = flavors.find(&quot;Buttered Pecan&quot;, 0, 25)\n\nprint(buttered_pecan)<\/pre><\/div>\n\n\n\n<p>Our code returns: 9. In this example, we used <em>find()<\/em> to find \u201cButtered Pecan\u201d in our string. We specified 0 as the position at which our search should start, and 25 as the position at which our search should end.\n\n<\/p>\n\n\n\n<p>Because \u201cButtered Pecan\u201d appears before \u201cCookies and Cream\u201d, a positive value was returned with the index position of \u201cButtered Pecan\u201d in our string.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python find() vs. Python index()<\/h2>\n\n\n\n<p>Both the Python find() and Python index() methods return the index position of a value in a string.<\/p>\n\n\n\n<p>Unlike index(), find() does not return an exception if a value is not found. Instead, the find() method returns -1. This means that you can process what happens if a value is not found without handling an error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The Python <em>find()<\/em> method allows you to find a substring within a string. It is similar to the index() method, but the index() method raises an exception if a value is not found. find() returns -1 if a value is not found.<\/p>\n\n\n\n<p>This tutorial discussed, with reference to examples, the basics of string indexing and how to use the Python <em>find()<\/em> method. Now you\u2019re equipped with the knowledge you need to start finding substrings in a string using <em>find()<\/em> like an expert!<\/p>\n\n\n\n<p>For guidance on top Python learning resources and courses, check out our <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-python\/\">How to Learn Python guide<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"The Python find() method locates the index position at which the first instance of a string occurs in another string. find() returns -1 if a value cannot be found. Otherwise, it returns the starting index position of the value for which you are searching. Finding a substring in a string is a common operation in&hellip;","protected":false},"author":240,"featured_media":17357,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-17355","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Python","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Python Find: A Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"The Python find() method allows you to find the index position of a substring in a string. On Career Karma, learn how to use the string find() method.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/python-find\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Find: A Guide\" \/>\n<meta property=\"og:description\" content=\"The Python find() method allows you to find the index position of a substring in a string. On Career Karma, learn how to use the string find() method.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-find\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-07T06:56:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:05:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/florian-olivo-4hbJ-eymZ1o-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-find\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-find\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python Find: A Guide\",\"datePublished\":\"2020-12-07T06:56:13+00:00\",\"dateModified\":\"2023-12-01T12:05:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-find\/\"},\"wordCount\":997,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-find\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/florian-olivo-4hbJ-eymZ1o-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-find\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-find\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-find\/\",\"name\":\"Python Find: A Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-find\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-find\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/florian-olivo-4hbJ-eymZ1o-unsplash.jpg\",\"datePublished\":\"2020-12-07T06:56:13+00:00\",\"dateModified\":\"2023-12-01T12:05:40+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Python find() method allows you to find the index position of a substring in a string. On Career Karma, learn how to use the string find() method.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-find\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-find\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-find\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/florian-olivo-4hbJ-eymZ1o-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/florian-olivo-4hbJ-eymZ1o-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-find\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\/\/careerkarma.com\/blog\/python\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python Find: A Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python Find: A Guide | Career Karma","description":"The Python find() method allows you to find the index position of a substring in a string. On Career Karma, learn how to use the string find() method.","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:\/\/careerkarma.com\/blog\/python-find\/","og_locale":"en_US","og_type":"article","og_title":"Python Find: A Guide","og_description":"The Python find() method allows you to find the index position of a substring in a string. On Career Karma, learn how to use the string find() method.","og_url":"https:\/\/careerkarma.com\/blog\/python-find\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-12-07T06:56:13+00:00","article_modified_time":"2023-12-01T12:05:40+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/florian-olivo-4hbJ-eymZ1o-unsplash.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/python-find\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-find\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python Find: A Guide","datePublished":"2020-12-07T06:56:13+00:00","dateModified":"2023-12-01T12:05:40+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-find\/"},"wordCount":997,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-find\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/florian-olivo-4hbJ-eymZ1o-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-find\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-find\/","url":"https:\/\/careerkarma.com\/blog\/python-find\/","name":"Python Find: A Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-find\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-find\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/florian-olivo-4hbJ-eymZ1o-unsplash.jpg","datePublished":"2020-12-07T06:56:13+00:00","dateModified":"2023-12-01T12:05:40+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Python find() method allows you to find the index position of a substring in a string. On Career Karma, learn how to use the string find() method.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-find\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-find\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-find\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/florian-olivo-4hbJ-eymZ1o-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/florian-olivo-4hbJ-eymZ1o-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-find\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/careerkarma.com\/blog\/python\/"},{"@type":"ListItem","position":3,"name":"Python Find: A Guide"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/17355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=17355"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/17355\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/17357"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=17355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=17355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=17355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}