Sophie’s Reviews > Murach's Python Programming: Beginner to Pro > Status Update
Sophie
is on page 192 of 553
- Two-dimensional list: to use a list of lists to store data in a grid of rows and columns.
- Shallow copy of a list: both variables refer to the same list. Any changes to one variable are reflected in the other variable.
- Deep copy of a list: both variables refer to their own copy of the list.
— Aug 16, 2021 04:35PM
- Shallow copy of a list: both variables refer to the same list. Any changes to one variable are reflected in the other variable.
- Deep copy of a list: both variables refer to their own copy of the list.
Like flag
Sophie’s Previous Updates
Sophie
is on page 210 of 553
file I/O:
Difference between txt & csv:
I. separators
1. txt has only /n (new line caracters) as separators.
2. csv can be used to store several items of data on a single line:
1) row (record) ends with /n.
2) row consists of columns (fields) which separated by commas.
II. import csv module to use the functions and objects.
— Aug 18, 2021 04:50PM
Difference between txt & csv:
I. separators
1. txt has only /n (new line caracters) as separators.
2. csv can be used to store several items of data on a single line:
1) row (record) ends with /n.
2) row consists of columns (fields) which separated by commas.
II. import csv module to use the functions and objects.
Sophie
is on page 189 of 553
1. Tuples are immutable, unlike lists.
2. When you know the items won't be changed, to be more efficient, you should use a tuple instead of list.
— Aug 16, 2021 04:28PM
2. When you know the items won't be changed, to be more efficient, you should use a tuple instead of list.
Sophie
is on page 143 of 553
Three types of errors that can occur:
- Syntax errors: aka compile-time errors, violate the rules for how Python statements must be written.
- Runtime errors: can't be detected until running the program. They throw exceptions that stop the execution of the program.
- Logic errors: produce the wrong results.
— Aug 16, 2021 03:39PM
- Syntax errors: aka compile-time errors, violate the rules for how Python statements must be written.
- Runtime errors: can't be detected until running the program. They throw exceptions that stop the execution of the program.
- Logic errors: produce the wrong results.
Sophie
is on page 143 of 553
- The goal of testing: try every possible combination to make the program fail.
- The goal of debugging: to fix all errors.
— Aug 16, 2021 03:35PM
- The goal of debugging: to fix all errors.
Sophie
is on page 28 of 553
#! shebang: to determine what interpreter to use to run the program.
#!/usr/bin/env python3
— Aug 16, 2021 02:06PM
#!/usr/bin/env python3
Sophie
is on page 11 of 553
How Python compiles and runs source code:
code editor -> source code (.py files) -> Python interpreter -> bytecode (the whole piece of code) -> Python virtual machine -> operating system
— Aug 16, 2021 12:04PM
code editor -> source code (.py files) -> Python interpreter -> bytecode (the whole piece of code) -> Python virtual machine -> operating system

