{"id":67,"date":"2021-09-16T12:16:20","date_gmt":"2021-09-16T17:16:20","guid":{"rendered":"https:\/\/sites.owu.edu\/geog-199\/?p=67"},"modified":"2021-09-16T12:16:20","modified_gmt":"2021-09-16T17:16:20","slug":"wade-chapter-1-introducing-python","status":"publish","type":"post","link":"https:\/\/sites.owu.edu\/geog-293\/2021\/09\/16\/wade-chapter-1-introducing-python\/","title":{"rendered":"Wade: Chapter 1: Introducing Python"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">Mack Wade<\/span><\/p>\n<p><span style=\"font-weight: 400\">Chapter 1: Introducing Python<\/span><\/p>\n<p><span style=\"font-weight: 400\">Notes<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Python is a free + open source software (FOSS)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Programming is building elements from scratch<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Scripting is the glue that allows elements to work together<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Python is both a scripting and programming language<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Python is the preferred programming language for ArcGIS Pro (Pro uses Python 3)<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Terms<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Back Porting &#8211; When a software patch or update is taken from a recent software version and approved to an older version of the same software<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Backward Compatibility &#8211; a property of a system, product, or technology that allows for interoperability with an older legacy system, or for input designed for such a system<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Cross Platform &#8211; Any software application that works on multiple operating systems<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Interpreted Language &#8211; A programming language which are generally interpreted, without compiling a program into a machine<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Object Oriented &#8211; A methodology which enables a system to be modeled as a set of objects which can be controlled and manipulated in a modular manner<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Object Oriented Programming (OOP) &#8211; A programming paradigm that relies on the concept of classes and objects<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Syntax &#8211; The set of rules that defines the conditions of symbols that are considered to be correctly structured statements or expressions in that language<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">Review Questions<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">What are some of the key features of Python that make it suitable as a scripting language to work with ArcGIS Pro?\u00a0<\/span>\n<ul style=\"list-style-type: circle\">\n<li><span style=\"font-weight: 400\">Python is the preferred language for Pro, and has its own module, ArcPy,\u00a0 that <\/span> <span style=\"font-weight: 400\">allows python to translate GIS functions. You can also run Python on the Python window in Pro that allows you to directly run code and see results in the map.\u00a0<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">What does it mean that Python is an interpreted language?\u00a0<\/span>\n<ul style=\"list-style-type: circle\">\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Python is called an interpreted language <\/span><span style=\"font-weight: 400\">because it goes through an <\/span> <span style=\"font-weight: 400\">interpreter, which turns code into the language understood <\/span> <span style=\"font-weight: 400\">by the computer&#8217;s processor<\/span><span style=\"font-weight: 400\">.\u00a0<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">What are some of the differences between scripting and programming?<\/span>\n<ul style=\"list-style-type: circle\">\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Scripting<\/span>\n<ul style=\"list-style-type: circle\">\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">To automate certain tasks in a program<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Extracting info from a data set<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Less code intensive as compared to traditional programming languages<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Programming<\/span>\n<ul style=\"list-style-type: circle\">\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Typically run inside a parent program\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">More compatible while integrating code with mathematical models<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Which Version of Python is used with ArcGIS Pro?<\/span>\n<ul style=\"list-style-type: circle\">\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Python 3<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">What are some of the reasons to invest time and effort into learning Python?<\/span>\n<ul style=\"list-style-type: circle\">\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Python is very easy to learn as a beginner. Python can also automate tasks that would otherwise be performed manually and would take up time.\u00a0<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Mack Wade Chapter 1: Introducing Python Notes Python is a free + open source software (FOSS) Programming is building elements from scratch Scripting is the glue that allows elements to work together Python is both a scripting and programming <span class=\"readmore\"><a href=\"https:\/\/sites.owu.edu\/geog-293\/2021\/09\/16\/wade-chapter-1-introducing-python\/\">Continue Reading<\/a><\/span><\/p>\n","protected":false},"author":1413,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-67","post","type-post","status-publish","format-standard","hentry","category-chapter-notes"],"_links":{"self":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/users\/1413"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":1,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":68,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts\/67\/revisions\/68"}],"wp:attachment":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}