{"id":29,"date":"2018-12-24T03:45:32","date_gmt":"2018-12-24T03:45:32","guid":{"rendered":"http:\/\/gantovnik.com\/bio-tips\/?p=29"},"modified":"2018-12-24T03:50:10","modified_gmt":"2018-12-24T03:50:10","slug":"concatenating-strings","status":"publish","type":"post","link":"https:\/\/gantovnik.com\/bio-tips\/2018\/12\/concatenating-strings\/","title":{"rendered":"Concatenating Strings"},"content":{"rendered":"<pre>#Concatenating strings\nstring1 = \"hello \"\nstring2 = \"world\"\nnew_string = string1 + string2\nprint(new_string)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#Concatenating strings string1 = &#8220;hello &#8221; string2 = &#8220;world&#8221; new_string = string1 + string2 print(new_string)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_lmt_disableupdate":"yes","_lmt_disable":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[3],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-python","tag-python"],"modified_by":null,"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8bH0k-t","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":37,"url":"https:\/\/gantovnik.com\/bio-tips\/2018\/12\/trimming-white-space\/","url_meta":{"origin":29,"position":0},"title":"Trimming White Space","author":"gantovnik","date":"2018-12-24","format":false,"excerpt":"string1 = \"Space \" string2 = string1.strip() print(string2)","rel":"","context":"In &quot;python&quot;","block_context":{"text":"python","link":"https:\/\/gantovnik.com\/bio-tips\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":33,"url":"https:\/\/gantovnik.com\/bio-tips\/2018\/12\/splitting-text\/","url_meta":{"origin":29,"position":1},"title":"Splitting Text","author":"gantovnik","date":"2018-12-24","format":false,"excerpt":"String1 = \"split second\" print(String1.split()) #['split', 'second']","rel":"","context":"In &quot;python&quot;","block_context":{"text":"python","link":"https:\/\/gantovnik.com\/bio-tips\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":31,"url":"https:\/\/gantovnik.com\/bio-tips\/2018\/12\/getting-a-substring\/","url_meta":{"origin":29,"position":2},"title":"Getting a Substring","author":"gantovnik","date":"2018-12-24","format":false,"excerpt":"#Getting a Substring String1 = \"One two three\" Print(Strin1[:2]) #On Print(Strin1[8:]) #three","rel":"","context":"In &quot;python&quot;","block_context":{"text":"python","link":"https:\/\/gantovnik.com\/bio-tips\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1891,"url":"https:\/\/gantovnik.com\/bio-tips\/2023\/07\/362-create-n-strings-of-length-k-using-symbols-from-the-given-alphabet-using-python\/","url_meta":{"origin":29,"position":3},"title":"#362 Create n strings of length k using symbols from the given alphabet using python.","author":"gantovnik","date":"2023-07-16","format":false,"excerpt":"Output:","rel":"","context":"In &quot;bioinformatics&quot;","block_context":{"text":"bioinformatics","link":"https:\/\/gantovnik.com\/bio-tips\/category\/bioinformatics\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":502,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/05\/creating-a-python-3-tkinter-hello-world\/","url_meta":{"origin":29,"position":4},"title":"#74 Creating a Python 3 Tkinter Hello World","author":"gantovnik","date":"2020-05-05","format":false,"excerpt":"Creating a Python 3 Tkinter Hello World","rel":"","context":"In &quot;python&quot;","block_context":{"text":"python","link":"https:\/\/gantovnik.com\/bio-tips\/category\/python\/"},"img":{"alt_text":"2020-05-05_233237","src":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2020\/05\/2020-05-05_233237.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":505,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/05\/creating-a-better-version-of-python-3-tkinter-hello-world\/","url_meta":{"origin":29,"position":5},"title":"#75 Creating a better version of Python 3 Tkinter Hello World","author":"gantovnik","date":"2020-05-06","format":false,"excerpt":"Creating a better version of Python 3 Tkinter Hello World","rel":"","context":"In &quot;python&quot;","block_context":{"text":"python","link":"https:\/\/gantovnik.com\/bio-tips\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2020\/05\/2020-05-06_000413.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":0,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"wp:attachment":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}