{"id":12268,"date":"2020-11-22T19:14:32","date_gmt":"2020-11-23T03:14:32","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=12268"},"modified":"2023-12-01T04:04:15","modified_gmt":"2023-12-01T12:04:15","slug":"python-concatenate-strings","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/","title":{"rendered":"Python Concatenate Strings: Step-By-Step Guide"},"content":{"rendered":"\n<p><em>Python string concatenation is the process of merging two or more strings. The + operator adds a string to another string. % lets you insert a string into another string value. Both operators are used to concatenate strings in Python.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>When you\u2019re working with a string in Python, you may want to combine it with another string. For example, you may have a user\u2019s first name and surname and want to combine them together to get the user\u2019s full name.<\/p>\n\n\n\n<p>We call merging strings together string concatenation. Python offers a number of string methods that can be used to concatenate separate strings and return a new one.<\/p>\n\n\n\n<p>In this tutorial, we are going to discuss how to use the + and % operators to concatenate strings in Python.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Concatenate Strings in Python<\/h2>\n\n\n\n<p>You can concatenate strings in Python using the + and % operators. The + operator adds a value to the end of a string whereas the % operator adds a value to any position in a Python string.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Concatenate Strings Using +<\/h2>\n\n\n\n<p>The + operator lets you combine two or more strings in Python. This operator is referred to as the Python string concatenation operator. The + operator should appear between the two strings you want to merge.<\/p>\n\n\n\n<p>The syntax for the + operator is:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;Hello &quot; + &quot;World&quot;)<\/pre><\/div>\n\n\n\n<p>This code concatenates, or merges, the <a href=\"https:\/\/careerkarma.com\/blog\/python-string-methods\/\"><\/a><a href=\"https:\/\/careerkarma.com\/blog\/python-string-methods\/\">Python strings<\/a> &#8220;Hello &#8221; and &#8220;World&#8221;. The <a href=\"https:\/\/careerkarma.com\/blog\/python-print-without-new-line\/\">Python print() statement<\/a> displays the final string to the console.<\/p>\n\n\n\n<p>Notice that we added a space after the word &#8220;Hello &#8220;. This is because concatenation does not automatically add a space between the strings we merge.<\/p>\n\n\n\n<p>Optionally, we could assign our strings to string variables. This is useful if you are working with multiple strings that you want to merge.<\/p>\n\n\n\n<p>The + operator returns a new string. This is because strings are immutable. which means they cannot be changed. Any string method in Python returns a new string, no matter what format method you use. The string that is created can be assigned to a new variable.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Concatenate Strings Python with + Example<\/h3>\n\n\n\n<p>Let\u2019s say that you are working for the payroll department at a company. You want to print out an employee\u2019s contact information to the console. Instead of just printing out the name of the employee and their address, you want to return the information with labels.<\/p>\n\n\n\n<p>You could use string concatenation to merge labels with the employee\u2019s contact information to get your desired output. Here\u2019s an example of a program that merges this information:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;Name: &quot; + &quot;John&quot;)\nprint(&quot;Address: &quot; + &quot;San Francisco&quot;)<\/pre><\/div>\n\n\n\n<p>Our program returns the following output:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Name: John\nAddress: San Francisco<\/pre><\/div>\n\n\n\n<p>As you can see, our two strings on each line have been concatenated with the operator <em>+<\/em>. On our first line, the string <em>Name: John<\/em> was created, and on the second line, the string <em>Address: San Francisco<\/em> was created.<\/p>\n\n\n\n<p>In the above example, we added white space to the end of our first strings (<em>\u201cName: \u201c and \u201cAddress: \u201c<\/em>). This is not done by default, as we discussed earlier.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Converting a Value to an Integer<\/h4>\n\n\n\n<p>The <em>+<\/em> string operator can only be used to merge two string values. You cannot combine data of two different data types using concatenation.<\/p>\n\n\n\n<p>So, if you have an integer and a string that you want to combine, you\u2019ll need to convert the integer to a string. Here\u2019s what happens if we try to combine a string and an integer:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;John&quot; + 22)<\/pre><\/div>\n\n\n\n<p>Our code returns the following error: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>TypeError: can only concatenate str (not &quot;int&quot;) to str<\/pre><\/div>\n\n\n\n<p>You can learn more about how this error works and why it is raised in our &#8220;<a href=\"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-str-not-int-to-str\/\">Python typeerror: can only concatenate str (not \u201cint\u201d) to str Solution<\/a>&#8221; article.<\/p>\n\n\n\n<p>We can fix this error by using the str() method to convert the integer value to a string. Our code will return the intended output:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;John&quot; + str(22))<\/pre><\/div>\n\n\n\n<p>Our code returns: <em>John22<\/em>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Concatenate Strings Python Using \u201c%\u201d<\/h2>\n\n\n\n<p>The % string formatting operator merges a string into another string. This operation is commonly called <a href=\"https:\/\/careerkarma.com\/blog\/python-f-string\/\">Python string interpolation<\/a>. You can add a string to any position in an existing string using interpolation.<\/p>\n\n\n\n<p>Whereas the + operator adds a value to the end of a string, the % operator can add a value to at position that you specify.<\/p>\n\n\n\n<p>Let&#8217;s look at the syntax for the % operator:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;%s %s&quot; % (&quot;Hello&quot;, &quot;World&quot;))<\/pre><\/div>\n\n\n\n<p>This code creates a single string with the contents &#8220;Hello World&#8221;. The %s values represent a value from the tuple that appears after our string. We specify the values that should appear in the string after the % which follows our string.<\/p>\n\n\n\n<p>We did not use specify a space in any of the values to add to our string. This is because we separated each %s value with a space in our main string.<\/p>\n\n\n\n<p>Let\u2019s use an example to illustrate how the <em>%<\/em> operator works. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">% Operator Example<\/h3>\n\n\n\n<p>Say that we have two names that we want to appear in a string. Here\u2019s the code we could use to add those names to our string:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>jack_and_jill = &quot;%a and %b went up the hill.&quot; % (&quot;Jack&quot;, &quot;Jill&quot;)\nprint(jack_and_jill)<\/pre><\/div>\n\n\n\n<p>Our code returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Jack and Jill went up the hill.<\/pre><\/div>\n\n\n\n<p>We use the <em>%<\/em> operator to declare where we want a value to appear in our string.<\/p>\n\n\n\n<p>We use <em>%a<\/em> to say that we want a specific value to appear in that position.  <em>%b<\/em> tells our program that we want another value to appear in that position. Then, at the end of our string, we use the <em>%<\/em> operator and tell our code what values we want to appear in our list.<\/p>\n\n\n\n<p>We have told our code that we want <em>Jack<\/em> to be placed in the first open place in our code. <em>Jill<\/em> should appear in the second open place. That leaves us with the string <em>Jack and Jill went up the hill<\/em>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>String concatenation is a common operation in many programming languages where you combine two or more strings into one. For example, you may want to combine an employee\u2019s first name and surname into one string, or two different flavors of pizza into one.<\/p>\n\n\n\n<p>In this tutorial, we discussed how you can use the <em>+<\/em> operator to concatenate strings in Python. We also explored how you can use the <em>%<\/em> operator to interpolate strings in Python.<\/p>\n\n\n\n<p>To learn more about Python, read our complete <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-python\/\">How to Learn Python guide<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"Python string concatenation is the process of merging two or more strings. The + operator adds a string to another string. % lets you insert a string into another string value. Both operators are used to concatenate strings in Python. When you\u2019re working with a string in Python, you may want to combine it with&hellip;","protected":false},"author":240,"featured_media":12269,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-12268","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 Concatenate Strings: Step-By-Step Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"String concatenation allows coders to merge two or more strings into one. Learn two ways to concatenate strings in Python on Career Karma.\" \/>\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-concatenate-strings\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Concatenate Strings: Step-By-Step Guide\" \/>\n<meta property=\"og:description\" content=\"String concatenation allows coders to merge two or more strings into one. Learn two ways to concatenate strings in Python on Career Karma.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/\" \/>\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-11-23T03:14:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:04:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-concatenate.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"549\" \/>\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-concatenate-strings\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python Concatenate Strings: Step-By-Step Guide\",\"datePublished\":\"2020-11-23T03:14:32+00:00\",\"dateModified\":\"2023-12-01T12:04:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/\"},\"wordCount\":1003,\"commentCount\":1,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-concatenate.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/\",\"name\":\"Python Concatenate Strings: Step-By-Step Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-concatenate.jpg\",\"datePublished\":\"2020-11-23T03:14:32+00:00\",\"dateModified\":\"2023-12-01T12:04:15+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"String concatenation allows coders to merge two or more strings into one. Learn two ways to concatenate strings in Python on Career Karma.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-concatenate.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-concatenate.jpg\",\"width\":1000,\"height\":549},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/#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 Concatenate Strings: Step-By-Step 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 Concatenate Strings: Step-By-Step Guide | Career Karma","description":"String concatenation allows coders to merge two or more strings into one. Learn two ways to concatenate strings in Python on Career Karma.","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-concatenate-strings\/","og_locale":"en_US","og_type":"article","og_title":"Python Concatenate Strings: Step-By-Step Guide","og_description":"String concatenation allows coders to merge two or more strings into one. Learn two ways to concatenate strings in Python on Career Karma.","og_url":"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-11-23T03:14:32+00:00","article_modified_time":"2023-12-01T12:04:15+00:00","og_image":[{"width":1000,"height":549,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-concatenate.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-concatenate-strings\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python Concatenate Strings: Step-By-Step Guide","datePublished":"2020-11-23T03:14:32+00:00","dateModified":"2023-12-01T12:04:15+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/"},"wordCount":1003,"commentCount":1,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-concatenate.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/","url":"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/","name":"Python Concatenate Strings: Step-By-Step Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-concatenate.jpg","datePublished":"2020-11-23T03:14:32+00:00","dateModified":"2023-12-01T12:04:15+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"String concatenation allows coders to merge two or more strings into one. Learn two ways to concatenate strings in Python on Career Karma.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-concatenate.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-concatenate.jpg","width":1000,"height":549},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/#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 Concatenate Strings: Step-By-Step 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\/12268","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=12268"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12268\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/12269"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=12268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=12268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=12268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}