Crash Course on Python Flashcards
Computer Program
is a recipe of instructions that tells your computer what to do.
- When you write a program, you create a step-by-step recipe of what needs to be done to complete a task and when your computer executes the program it reads what you wrote and follows your instructions to the letter.
- The Recipe is written in a code called programming languages.
Syntax
The Rules for how a sentence is constructed.
Semantics
The actual meaning of statements.( the meaning the instructions can have).
Script
A Program that is short, simple and can be written very quickly.
What is automation?
The Process of replacing a Manual step with one that happens automatically.
- Automating tasks allows you to focus on projects that are a better use of your time, letting computers do the boring stull for you.
Programming code
Programming code is set of written computer instructions, guided by rules, using a computer programming language.
- It Might help to think of 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 be referred to as source code or scripts.
Programming languages
- Programming languages are similar to human spoken languages in that they are both use syntax and semantics.
- Programming languages are used to write computer programs. Some common programming languages include Python, Java, C C++ and R.
Syntax
Syntax is a set of rules for how statements are constructed in both humans 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.
- The concept is similar to the syntax rules for grammar and punctuation in human language.
Semantics
Semantics refers to the intended meaning or effect of the statements, or collection of words, in both human and computer languages.
- Semantic errors are also referred to as logical errors.
Computer Program
- A computer program is a step-by-step list of instructions that a computer follows to reach an intended goal.
- It is important to be clear and precise about the actions a computer program is supposed to perform because computers will do exactly what they are instructed to do.
- Computer programs can be long, complex, and accomplish a variety of tasks.
- Computer programs may involve a structured development cycle.
- The completed format of a program is often a single executable file.
Computer Program
- A computer program is a step-by-step list of instructions that a computer follows to reach an intended goal.
- It is important to be clear and precise about the actions a computer program is supposed to perform because computers will do exactly what they are instructed to do.
- Computer programs can be long, complex, and accomplish a variety of tasks.
- Computer programs may involve a structured development cycle.
- The completed format of a program is often a single executable file.
Script
- Scripts are usually shorter and less complex than computer programs.
- 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 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.
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 a 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.
Functions
Functions is a reusable block of code that performs a specific task.
Variables
Variables are used to temporality store changeable values in a programing code.
Python interpreter
The Program that reads what’s in the recipe and translates it into instructions for your computer to follow.
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 used for web programming.
-The scripts are transferred from a web server to 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 the binary code ( ones and zero).
- In binary code, one equals a pulse of electricity and zero equals no electric pulse.
- Machine Language instructions are made from translating languages like python into complex patterns of ones and zeros.
Cross-platform programming language
Programming language that is compatible with one or more platforms/ operating systems ( e.g. Window. Linux, Max, iOS, Android).
Object-oriented programming language
In Object-oriented programming language, most coding elements are considered to be objects with Configurable properties.
- e.g. a form field is an object that can be configured to accept only dates as input in the month day and year, and can be configured to read 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.
Functions
Pieces of code that perform a unit of work.
Keywords
Reserved words that are used to construct instructions.
Data Types
-String known as data type
Variables
Are the names we give to the certain values to our program.