{"id":228,"date":"2019-12-26T23:11:00","date_gmt":"2019-12-26T23:11:00","guid":{"rendered":"https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/"},"modified":"2019-12-26T23:11:00","modified_gmt":"2019-12-26T23:11:00","slug":"python-tutorial-series-set-up-2","status":"publish","type":"post","link":"https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/","title":{"rendered":"Python Tutorial Series &#8211; Set Up"},"content":{"rendered":"<p>I&#8217;m working on learning Python, so in the process of doing that, I thought I&#8217;d put together a series of Python tutorial blog posts. Python is supposed to be easy to learn, so we&#8217;ll see.<\/p>\n<p>In order to use Python on your local machine, it needs to be downloaded from <a href=\"https:\/\/www.python.org\/downloads\/\" rel=\"noopener\" target=\"_blank\">here<\/a>. There are 2 major versions available. The latest is 3.7.1. There is also a version 2.7.15. I&#8217;m going to focus on version 3, which is the result of cleaning up version 2 without regards to backwards compatibility. Version 2 will not have any new major releases and support will end in 2020. However, it is still in use by a lot of people. In fact, an online course I tried taking still used version 2. It is possible to install version 2 and version 3 on the same computer though. The trick to getting them both to work from the command line is to rename the executable of one version a different name than the other version. For example, I renamed python.exe for version 2 python2.exe. In a Windows command prompt, I can run version 3 by typing python. I can also run version 2 by typing python2 in the command prompt. Both versions need to have their directories added to the environment variable PATH setting.<\/p>\n<p>For version 3, add the following to the environment variable PATH setting:<\/p>\n<p><em>C:your path to python3Scripts<\/em><\/p>\n<p><em>C:your path to python3<\/em><\/p>\n<p>For version 2, add the following to the environment variable PATH setting:<\/p>\n<p><em>C:your path to python2<\/em><\/p>\n<p>To code in python, <a href=\"https:\/\/www.anaconda.com\/download\/\" rel=\"noopener\" target=\"_blank\">Anaconda<\/a> is a popular data science tool which comes packaged with Python. There are also online Python editors, such as<a href=\"https:\/\/www.onlinegdb.com\/\" rel=\"noopener\" target=\"_blank\"> https:\/\/www.onlinegdb.com<\/a> or <a href=\"https:\/\/repl.it\/repls\/SoftRashSearchengine\" rel=\"noopener\" target=\"_blank\">https:\/\/repl.it\/repls\/SoftRashSearchengine.<\/a><\/p>\n<p>For a quick way to run examples, try this site: <a href=\"https:\/\/repl.it\/languages\/python3\" rel=\"noopener\" target=\"_blank\">https:\/\/repl.it\/languages\/python3<\/a><\/p>\n<p>Python Tutorial Series Table of Contents:<\/p>\n<ul><\/ul>\n<p><\/p>\n<li><a href=\"https:\/\/www.zofxare.com\/blog\/home\/2019\/01\/26\/python-tutorial-series-ide\/\" rel=\"noopener\" target=\"_blank\">IDE<\/a><\/li>\n<li><a href=\"https:\/\/www.zofxare.com\/blog\/home\/2019\/02\/01\/python-tutorial-series-comments\/\" rel=\"noopener\" target=\"_blank\">Comments<\/a><\/li>\n<li><a href=\"https:\/\/www.zofxare.com\/blog\/home\/2019\/02\/07\/python-tutorial-series-style-guide\/\" rel=\"noopener\" target=\"_blank\">Style Guide<\/a><\/li>\n<li><a href=\"https:\/\/www.zofxare.com\/blog\/home\/2019\/02\/08\/python-tutorial-series-variables\/\" rel=\"noopener\" target=\"_blank\">Variables<\/a><\/li>\n<li><a href=\"https:\/\/www.zofxare.com\/blog\/home\/2019\/02\/16\/python-tutorial-series-lists\/\" rel=\"noopener\" target=\"_blank\">Lists<\/a><\/li>\n<li><a href=\"https:\/\/www.zofxare.com\/blog\/home\/2019\/02\/20\/python-tutorial-series-tuples\/\" rel=\"noopener\" target=\"_blank\">Tuples<\/a><\/li>\n<li><a href=\"https:\/\/www.zofxare.com\/blog\/home\/2019\/03\/09\/python-tutorial-series-dictionaries\/\" rel=\"noopener\" target=\"_blank\">Dictionaries<\/a><\/li>\n<li><a href=\"https:\/\/www.zofxare.com\/blog\/home\/2019\/03\/28\/python-tutorial-series-loops\/\" rel=\"noopener\" target=\"_blank\">Loops<\/a><\/li>\n<li><a href=\"https:\/\/www.zofxare.com\/blog\/home\/2019\/04\/04\/python-tutorial-series-functions\/\" rel=\"noopener\" target=\"_blank\">Functions<\/a><\/li>\n<li><a href=\"https:\/\/www.zofxare.com\/blog\/home\/2019\/04\/27\/python-tutorial-series-exceptions\/\" rel=\"noopener\" target=\"_blank\">Exceptions<\/a><\/li>\n<li><a href=\"https:\/\/www.zofxare.com\/blog\/home\/2019\/04\/27\/python-tutorial-series-conditions\/\" rel=\"noopener\" target=\"_blank\">Conditions<\/a><\/li>\n<li><a href=\"https:\/\/www.zofxare.com\/blog\/home\/2019\/04\/27\/python-tutorial-series-event-handling\/\" rel=\"noopener\" target=\"_blank\">Event Handling<\/a><\/li>\n<li><a href=\"https:\/\/www.zofxare.com\/blog\/home\/2019\/05\/04\/python-tutorial-series-files\/\" rel=\"noopener\" target=\"_blank\">Files<\/a><\/li>\n<li><a href=\"https:\/\/www.zofxare.com\/blog\/home\/2019\/06\/25\/python-tutorial-series-classes\/\" rel=\"noopener\" target=\"_blank\">Classes<\/a><\/li>\n<li><a href=\"http:\/\/www.zofxare.com\/blog\/home\/2019\/06\/26\/python-tutorial-series-modules\/\" rel=\"noopener\" target=\"_blank\">Modules<\/a><\/li>\n<li><a href=\"http:\/\/www.zofxare.com\/blog\/home\/2019\/06\/28\/python-tutorial-series-packages\/\" rel=\"noopener\" target=\"_blank\">Packages<\/a><\/li>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/amzn.to\/2EimtFd\" rel=\"noopener\" target=\"_blank\">More Python<\/a><\/p>\n<p><iframe frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" scrolling=\"no\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=US&amp;source=ss&amp;ref=as_ss_li_til&amp;ad_type=product_link&amp;tracking_id=zofxare-20&amp;language=en_US&amp;marketplace=amazon&amp;region=US&amp;placement=B0785Q7GSY&amp;asins=B0785Q7GSY&amp;linkId=db5e82d74b668701871debd783c9ddf6&amp;show_border=true&amp;link_opens_in_new_window=true\" style=\"height: 240px; width: 120px;\"><\/iframe><iframe frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" scrolling=\"no\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=US&amp;source=ss&amp;ref=as_ss_li_til&amp;ad_type=product_link&amp;tracking_id=zofxare-20&amp;language=en_US&amp;marketplace=amazon&amp;region=US&amp;placement=B077Z55G3B&amp;asins=B077Z55G3B&amp;linkId=52c196ba1fda10ea7b99169422b21af7&amp;show_border=true&amp;link_opens_in_new_window=true\" style=\"height: 240px; width: 120px;\"><\/iframe><iframe frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" scrolling=\"no\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=US&amp;source=ss&amp;ref=as_ss_li_til&amp;ad_type=product_link&amp;tracking_id=zofxare-20&amp;language=en_US&amp;marketplace=amazon&amp;region=US&amp;placement=1491912057&amp;asins=1491912057&amp;linkId=e818186a630b59613fa23378eab853f9&amp;show_border=true&amp;link_opens_in_new_window=true\" style=\"height: 240px; width: 120px;\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m working on learning Python, so in the process of doing that, I thought I&#8217;d put together a series of Python tutorial blog posts. Python is supposed to be easy to learn, so we&#8217;ll see. In order to use Python on your local machine, it needs to be downloaded from here. There are 2 major [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13,343,341],"tags":[],"class_list":["post-228","post","type-post","status-publish","format-standard","hentry","category-python","category-python-tutorials","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Tutorial Series - Set Up - Zofxare Blog Home<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Tutorial Series - Set Up - Zofxare Blog Home\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m working on learning Python, so in the process of doing that, I thought I&#8217;d put together a series of Python tutorial blog posts. Python is supposed to be easy to learn, so we&#8217;ll see. In order to use Python on your local machine, it needs to be downloaded from here. There are 2 major [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Zofxare Blog Home\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-26T23:11:00+00:00\" \/>\n<meta name=\"author\" content=\"adminuser\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"adminuser\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2019\\\/12\\\/26\\\/python-tutorial-series-set-up-2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2019\\\/12\\\/26\\\/python-tutorial-series-set-up-2\\\/\"},\"author\":{\"name\":\"adminuser\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/488c98b837076eb349075c14ea0e87d8\"},\"headline\":\"Python Tutorial Series &#8211; Set Up\",\"datePublished\":\"2019-12-26T23:11:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2019\\\/12\\\/26\\\/python-tutorial-series-set-up-2\\\/\"},\"wordCount\":330,\"commentCount\":0,\"articleSection\":[\"python\",\"python tutorials\",\"tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2019\\\/12\\\/26\\\/python-tutorial-series-set-up-2\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2019\\\/12\\\/26\\\/python-tutorial-series-set-up-2\\\/\",\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2019\\\/12\\\/26\\\/python-tutorial-series-set-up-2\\\/\",\"name\":\"Python Tutorial Series - Set Up - Zofxare Blog Home\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#website\"},\"datePublished\":\"2019-12-26T23:11:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/488c98b837076eb349075c14ea0e87d8\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2019\\\/12\\\/26\\\/python-tutorial-series-set-up-2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2019\\\/12\\\/26\\\/python-tutorial-series-set-up-2\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2019\\\/12\\\/26\\\/python-tutorial-series-set-up-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Tutorial Series &#8211; Set Up\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/\",\"name\":\"Zofxare Blog Home\",\"description\":\"The Zofxare blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/488c98b837076eb349075c14ea0e87d8\",\"name\":\"adminuser\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5fe9cf8bb25011247f8063d1c50de6fbdd21be02889559dd151d722f050f037?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5fe9cf8bb25011247f8063d1c50de6fbdd21be02889559dd151d722f050f037?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5fe9cf8bb25011247f8063d1c50de6fbdd21be02889559dd151d722f050f037?s=96&d=retro&r=g\",\"caption\":\"adminuser\"},\"sameAs\":[\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\"],\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/author\\\/adminuser\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Tutorial Series - Set Up - Zofxare Blog Home","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:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/","og_locale":"en_US","og_type":"article","og_title":"Python Tutorial Series - Set Up - Zofxare Blog Home","og_description":"I&#8217;m working on learning Python, so in the process of doing that, I thought I&#8217;d put together a series of Python tutorial blog posts. Python is supposed to be easy to learn, so we&#8217;ll see. In order to use Python on your local machine, it needs to be downloaded from here. There are 2 major [&hellip;]","og_url":"https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/","og_site_name":"Zofxare Blog Home","article_published_time":"2019-12-26T23:11:00+00:00","author":"adminuser","twitter_card":"summary_large_image","twitter_misc":{"Written by":"adminuser","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/#article","isPartOf":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/"},"author":{"name":"adminuser","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/488c98b837076eb349075c14ea0e87d8"},"headline":"Python Tutorial Series &#8211; Set Up","datePublished":"2019-12-26T23:11:00+00:00","mainEntityOfPage":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/"},"wordCount":330,"commentCount":0,"articleSection":["python","python tutorials","tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/","url":"https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/","name":"Python Tutorial Series - Set Up - Zofxare Blog Home","isPartOf":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/#website"},"datePublished":"2019-12-26T23:11:00+00:00","author":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/488c98b837076eb349075c14ea0e87d8"},"breadcrumb":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/26\/python-tutorial-series-set-up-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zofxare.com\/zofxare\/blog\/"},{"@type":"ListItem","position":2,"name":"Python Tutorial Series &#8211; Set Up"}]},{"@type":"WebSite","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#website","url":"https:\/\/zofxare.com\/zofxare\/blog\/","name":"Zofxare Blog Home","description":"The Zofxare blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zofxare.com\/zofxare\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/488c98b837076eb349075c14ea0e87d8","name":"adminuser","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c5fe9cf8bb25011247f8063d1c50de6fbdd21be02889559dd151d722f050f037?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c5fe9cf8bb25011247f8063d1c50de6fbdd21be02889559dd151d722f050f037?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c5fe9cf8bb25011247f8063d1c50de6fbdd21be02889559dd151d722f050f037?s=96&d=retro&r=g","caption":"adminuser"},"sameAs":["https:\/\/zofxare.com\/zofxare\/blog"],"url":"https:\/\/zofxare.com\/zofxare\/blog\/author\/adminuser\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/comments?post=228"}],"version-history":[{"count":0,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts\/228\/revisions"}],"wp:attachment":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/media?parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/categories?post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/tags?post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}