{"id":33,"date":"2018-12-24T04:48:59","date_gmt":"2018-12-24T04:48:59","guid":{"rendered":"http:\/\/gantovnik.com\/bio-tips\/?p=33"},"modified":"2018-12-24T04:48:59","modified_gmt":"2018-12-24T04:48:59","slug":"splitting-text","status":"publish","type":"post","link":"https:\/\/gantovnik.com\/bio-tips\/2018\/12\/splitting-text\/","title":{"rendered":"Splitting Text"},"content":{"rendered":"<pre>String1 = \"split second\"\nprint(String1.split())\n#['split', 'second']<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>String1 = &#8220;split second&#8221; print(String1.split()) #[&#8216;split&#8217;, &#8216;second&#8217;]<\/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-33","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-x","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":37,"url":"https:\/\/gantovnik.com\/bio-tips\/2018\/12\/trimming-white-space\/","url_meta":{"origin":33,"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":29,"url":"https:\/\/gantovnik.com\/bio-tips\/2018\/12\/concatenating-strings\/","url_meta":{"origin":33,"position":1},"title":"Concatenating Strings","author":"gantovnik","date":"2018-12-24","format":false,"excerpt":"#Concatenating strings string1 = \"hello \" string2 = \"world\" new_string = string1 + string2 print(new_string)","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":33,"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":499,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/05\/how-to-update-all-python-packages-in-windows\/","url_meta":{"origin":33,"position":3},"title":"#73 How to update all python packages in Windows?","author":"gantovnik","date":"2020-05-03","format":false,"excerpt":"How to update all python packages in Windows? 1) Open a command shell by typing powershell in the Search Box of the Task bar 2) Enter pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}","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":1000,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/10\/179-upgrade-all-packages-in-python-using-powershell\/","url_meta":{"origin":33,"position":4},"title":"#179 Upgrade all packages in Python using PowerShell","author":"gantovnik","date":"2021-10-11","format":false,"excerpt":"#179 Upgrade all packages in Python using PowerShell Create update_python.bat file Create update_python.ps1 file","rel":"","context":"In &quot;powershell&quot;","block_context":{"text":"powershell","link":"https:\/\/gantovnik.com\/bio-tips\/category\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":413,"url":"https:\/\/gantovnik.com\/bio-tips\/2019\/03\/perl-script-to-write-line-containing-specific-word-and-next-second-and-third-lines\/","url_meta":{"origin":33,"position":5},"title":"#62 Perl script to write line containing specific word and next second and third lines","author":"gantovnik","date":"2019-03-10","format":false,"excerpt":"","rel":"","context":"In &quot;perl&quot;","block_context":{"text":"perl","link":"https:\/\/gantovnik.com\/bio-tips\/category\/perl\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/33","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=33"}],"version-history":[{"count":0,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"wp:attachment":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}