Python Materials
Python Materials
Scripts can be used for automating specific tasks. Automation is used to replace a repetitive manual
step with one that happens automatically. Humans are fallible. They can become tired, make
mistakes, fail to follow instructions, be inconsistent in their job performance, and more. In contrast,
automated processes complete instructions exactly as coded, in a consistent manner. They can run
24 hours a day, everyday, without tiring. For many tasks that are appropriate for automation, it can
be more cost effective to use automation than human labor.
Artificial Intelligence
It is important to understand that basic automation is not the same as artificial intelligence.
Automation is used to explicitly instruct a machine on how to perform a task. Artificial intelligence
(AI) involves training a computing machine to perform more complex tasks through a process called
machine learning. This process prepares the AI software to perform new tasks without a human
needing to program explicit instructions for each task. Although AI is often used for automating
human tasks, AI automation is much more complex than basic automation.
Key Terms
Programming code - Programming code is a set of written computer instructions, guided by
rules, using a computer programming language. It might help to think of the computer
instructions as a detailed, step-by-step recipe for performing tasks. The instructions tell
computers and machines how to perform an action. Programming code may also be referred
to as source code or scripts.
Syntax - Syntax is a set of rules for how statements are constructed in both human and
computer languages. Programming syntax includes rules for the order of elements in
programming instructions, as well as the use of special characters and their placements in
statements. This concept is similar to the syntax rules for grammar and punctuation in
human language.
Script - Scripts are usually shorter and less complex than computer programs. Scripts are
often used to automate specific tasks. However, they can be used for complex tasks if
needed. Scripts are often written by IT professionals, but anyone can learn to write scripts.
Scripts have a shorter, less structured development cycle as compared to the development
of complex computer programs and software. Scripts can be written in a variety of
programming languages, like Python, Javascript, Ruby, Bash, and more. Some scripting
languages are interpreted languages and are only compatible with certain platforms.
Python Resources
More About Python
Using Python on your own
The best way to learn any programming language is to practice it on your own as much as you can.
If you have Python installed on your computer, you can execute the interpreter by running the
python3 command (or just python on Windows), and you can close it by typing exit() or Ctrl-D.
If you don’t already have Python installed on your machine, that’s alright. We’ll explain how to install
it in an upcoming course.
Below, you’ll find links to some of the most popular online interpreters and codepads. Give them a
go to find your favorite.
https://www.python.org/shell/
https://www.onlinegdb.com/online_python_interpreter
https://repl.it/languages/python3
https://www.tutorialspoint.com/execute_python3_online.php
https://rextester.com/l/python3_online_compiler
https://trinket.io/python3
Additional Python resources
While this course will give you information about how Python works and how to write scripts in
Python, you’ll likely want to find out more about specific parts of the language. Here are some great
ways to help you find additional info:
Python has recently been called the fastest growing programming language. If you're interested in
why this is and how it’s measured, you can find out more in these articles:
In this segment, you learned that Python is a general purpose programming language that is
commonly used for scripting and automation, as well as to develop a wide variety of applications.
Python is compatible with most operating systems, including Windows, Linux, and Mac OS, and is
updated every few years. Python can also run on a variety of machines, such as servers,
workstations, PCs, mobile devices, IoT, and more.
Python is widely used in the IT field, including IT support, system administration, web development,
machine learning, data analytics, and more. Python can be used to calculate statistics, run your e-
commerce site, process images, interact with web services, and do a whole host of other tasks.
Python instructions resemble the English language, which is what makes it easier to learn and
understand when compared to other programming languages.
Python is:
Python is not:
Key Terms
Platform-specific / OS specific scripting language - Platform-specific scripting languages, like
PowerShell (for Windows) and Bash (for Linux), are used by system administrators on those
platforms.
Client-side scripting language - Client-side scripting languages, like JavaScript, are used
mostly for web programming. The scripts are transferred from a web server to the end-user’s
internet browser, then executed in the browser.
Machine language - Machine language is the lowest-level computer language. It
communicates directly with computing machines in binary code (ones and zeros). In binary
code, one equals a pulse of electricity and zero equals no electrical pulse. Machine language
instructions are made from translating languages like Python into complex patterns of ones
and zeros.
Cross-platform language - Programming language that is compatible with one or more
platforms / operating systems (e.g., Windows, Linux, Mac, iOS, Android).
Object-oriented programming language - In object-oriented programming languages, most
coding elements are considered to be objects with configurable properties. For example, a
form field is an object that can be configured to accept only dates as input in the mm/dd/yy
format, and can be configured to read from and write to a specific database.
Python interpreter - An interpreter is the program that reads and executes Python code by
translating Python code into computer instructions.
Resources
For additional Python practice, the following links will take you to several popular online interpreters
and codepads:
Welcome to Python
Online Python Interpreter
Create a new Repl
Online Python-3 Compiler (Interpreter)
Compile Python 3 Online
Your Python Trinket
Automation - Automation is used to replace a repetitive manual step with one that
happens automatically.
Output - Output is the end result of a task performed by a function or computer program.
Output can include a single value, a report, entries into a database, and more.
Input - Input is information that is provided to a program by the end user. Input can be
text, voice, images, biometrics, and more.