ZYBOOK CHAPTERS 1-8 PYTHON 2023/2024 GUIDE WITH UPDATED COMPLETE
SOLUTION
computer program - Consists of instructions that a computer executes (or runs), like multiplying numbers
or printing a number to a screen.
task decomposition - Means to reduce a complex task into simpler basic steps, making the whole task
easier to solve.
algorithm - A recipe or a methodical step-by-step procedure to perform a task.
computational thinking - Evaluating a problem's most basic parts and then creating an algorithm to solve
that problem is commonly known as
Python interpreter - An application that can be used on various operating systems, including Microsoft
Windows, Linux, and MacOS.
interactive interpreter - A program that allows the user to execute one line of code at a time.
code - A common word for the textual representation of a program
line - A row of text
prompt - Indicates the interpreter is ready to accept code ">>>"
statement - A program instruction
expression - code that returns a value when evaluated;
variables - Named references to values stored by the interpreter.
,assignment - Creates a new variable by using the = value
comments - used to explain portions of code to a human reader. "# PA1"
print() - displays variables or expression values
string literal - Text enclosed in quotes is known as this. ('hello world')
new line character - A new line can also be output by inserting \n.
ex: "1/n2/n3"
input - Reads text entered by the user, and assigns the entered text to a variable. Causes the interpreter
to wait until the user has entered some text and has pushed the return key.
string - Always surrounded by single or double quotes, for example 'Hello' or "#Goodbye# Amigo!".
type - Determines how a value can behave
int() - used to convert that string to the integer
syntax error - Violates a programming language's rules on how symbols can be combined to create a
program.
runtime error - a program's syntax is correct but the program attempts an impossible operation, such as
dividing by zero or multiplying strings together
crash - Abrupt and unintended termination of a program
, logic error - A logically flawed program. It works but the output is not correct for the given goal for the
program.
bug - another name for a logic error
integrated development environment - Code development. A way to create programs and test them all
in one.
bit - 0s and 1s (another way to call "binary numbers")
processor - created to process (aka execute) a list of desired calculations
instruction - each calculation output from processors
memory - circuits that can store 0s and 1s in each of a series of thousands of addressed locations
program, application, or "app" - The programmer -created sequence of instructions
machine instructions - Instructions represented as 0s and 1s
executable program - a sequence of machine instructions
assembly - created programs called assemblers to automatically translate human readable instructions
high-level languages - programmers created this to support programming using formulas or algorithms,
so a programmer could write complex formulas
compilers - programs that automatically translate high-level language programs into executable
programs.
SOLUTION
computer program - Consists of instructions that a computer executes (or runs), like multiplying numbers
or printing a number to a screen.
task decomposition - Means to reduce a complex task into simpler basic steps, making the whole task
easier to solve.
algorithm - A recipe or a methodical step-by-step procedure to perform a task.
computational thinking - Evaluating a problem's most basic parts and then creating an algorithm to solve
that problem is commonly known as
Python interpreter - An application that can be used on various operating systems, including Microsoft
Windows, Linux, and MacOS.
interactive interpreter - A program that allows the user to execute one line of code at a time.
code - A common word for the textual representation of a program
line - A row of text
prompt - Indicates the interpreter is ready to accept code ">>>"
statement - A program instruction
expression - code that returns a value when evaluated;
variables - Named references to values stored by the interpreter.
,assignment - Creates a new variable by using the = value
comments - used to explain portions of code to a human reader. "# PA1"
print() - displays variables or expression values
string literal - Text enclosed in quotes is known as this. ('hello world')
new line character - A new line can also be output by inserting \n.
ex: "1/n2/n3"
input - Reads text entered by the user, and assigns the entered text to a variable. Causes the interpreter
to wait until the user has entered some text and has pushed the return key.
string - Always surrounded by single or double quotes, for example 'Hello' or "#Goodbye# Amigo!".
type - Determines how a value can behave
int() - used to convert that string to the integer
syntax error - Violates a programming language's rules on how symbols can be combined to create a
program.
runtime error - a program's syntax is correct but the program attempts an impossible operation, such as
dividing by zero or multiplying strings together
crash - Abrupt and unintended termination of a program
, logic error - A logically flawed program. It works but the output is not correct for the given goal for the
program.
bug - another name for a logic error
integrated development environment - Code development. A way to create programs and test them all
in one.
bit - 0s and 1s (another way to call "binary numbers")
processor - created to process (aka execute) a list of desired calculations
instruction - each calculation output from processors
memory - circuits that can store 0s and 1s in each of a series of thousands of addressed locations
program, application, or "app" - The programmer -created sequence of instructions
machine instructions - Instructions represented as 0s and 1s
executable program - a sequence of machine instructions
assembly - created programs called assemblers to automatically translate human readable instructions
high-level languages - programmers created this to support programming using formulas or algorithms,
so a programmer could write complex formulas
compilers - programs that automatically translate high-level language programs into executable
programs.