{"id":1366,"date":"2016-05-26T18:03:44","date_gmt":"2016-05-26T22:03:44","guid":{"rendered":"http:\/\/www.ivyrun.com\/inanotherplace\/?p=1366"},"modified":"2016-05-26T18:03:44","modified_gmt":"2016-05-26T22:03:44","slug":"trial-and-error-with-python","status":"publish","type":"post","link":"https:\/\/www.ivyrun.com\/inanotherplace\/?p=1366","title":{"rendered":"Trial and Error with Python"},"content":{"rendered":"<p>In my <a href=\"https:\/\/www.ivyrun.com\/inanotherplace\/?p=701\">advice to newbie programmers<\/a>, I recommended making sure you were aware of different versions of the languages. The books I had been using as well as my new books, <a href=\"http:\/\/learnpythonthehardway.org\/book\/index.html\">Learn Python the Hard Way<\/a>, all use Python 2.7. \u00a0I have learned that there is some disagreement about whether you should learn Python 2 or 3. The best piece of advice I read was to do the exercises in Python 2 and then rewrite them in Python 3, so that&#8217;s what I have been doing.<\/p>\n<p>I&#8217;ve been doing a lot of googling but also some trial and error as I learn the basic differences between the syntax. There&#8217;s a little thrill when the Python 3 code runs correctly!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my advice to newbie programmers, I recommended making sure you were aware of different versions of the languages. The books I had been using as well as my new books, Learn Python the Hard Way, all use Python 2.7. \u00a0I have learned that there is some disagreement about whether you should learn Python 2 &hellip; <a href=\"https:\/\/www.ivyrun.com\/inanotherplace\/?p=1366\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Trial and Error with Python<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[161],"tags":[422],"class_list":["post-1366","post","type-post","status-publish","format-standard","hentry","category-programming","tag-python"],"jetpack_shortlink":"https:\/\/wp.me\/p4X3L0-m2","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=\/wp\/v2\/posts\/1366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1366"}],"version-history":[{"count":1,"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=\/wp\/v2\/posts\/1366\/revisions"}],"predecessor-version":[{"id":1367,"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=\/wp\/v2\/posts\/1366\/revisions\/1367"}],"wp:attachment":[{"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}