Skip to content

Commit

Permalink
Chapter 8 - FIle I/O
Browse files Browse the repository at this point in the history
Added file I/O chapter and compelted additional cleanup.
  • Loading branch information
geozeke committed Jul 4, 2020
1 parent 2638018 commit f0cb7b2
Show file tree
Hide file tree
Showing 11 changed files with 697 additions and 54 deletions.
55 changes: 28 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,77 +5,78 @@ This is a collection of Jupyter Notebooks for teaching Python programming with a
## Topics

1. Introduction
* Using Jupyter notebooks
* Your First Python Program
* Using Jupyter Notebooks
* Your first Python program


2. Basic operations
* Variables, Assignment Statements, Expressions
* Variables, assignment statements, expressions
* Reading console input
* Numeric Data Types
* Operator Precedence
* Numeric data types
* Operator precedence
* Strings
* Type Conversions
* Type conversions


3. Built-in Functions and Objects
* Common Functions
* Objects and Methods
* Common functions
* Objects and methods
* Formatting output with `.format()`


4. Branch Logic
* Boolean Data Types
* `if` Statements
* `if` - `else` Statements
* `if` - `elif` - `else` Statements
* Boolean data types
* `if` statements
* `if` - `else` statements
* `if` - `elif` - `else` statements
* Logical operators (`and`, `or`, `not`)
* Operator Precedence
* Operator precedence


5. Iteration (Loops)
* `for` Loop
* `while` Loop
* Nested Loops
* `for` loop
* `while` loop
* Nested loops
* `break` and `continue`


6. User Defined Functions
* Introduction
* Defining Functions
* Calling Functions
* Arguments and Parameters
* Variable Scope
* Defining functions
* Calling functions
* Arguments and parameters
* Variable scope


7. Collections: Lists, Dictionaries, Sets, Tuples
* Creating
* Accessing Data
* Functions - Returning Multiple Values
* Functions - Pass by Value; Pass by Reference
* Accessing data
* Functions - returning multiple values
* Functions - pass by value; pass by reference


8. File I/O
* Modes: read (`'r'`), write (`'w'`), append(`'a'`)
* Ways to Read: `read()`, `readline()`, `readlines()`
* Writing and Closing: `write()`, `close()`
* Writing and closing: `write()`, `close()`
* Ways to read: `read()`, `readline()`, `readlines()`


9. Hashing
* Hashing Strings
* Hashing strings


10. Exception Handling
* Catching exceptions
* Raising exceptions


11. Recursion
* Introduction
* Examples


12. OOP
* User-defined Classes
* User defined classes


13. Misc Topics
55 changes: 28 additions & 27 deletions content/00_tableOfContents.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,77 +11,78 @@
"## Topics\n",
"\n",
"1. Introduction\n",
" * Using Jupyter notebooks\n",
" * Your First Python Program\n",
" * Using Jupyter Notebooks\n",
" * Your first Python program\n",
" \n",
" \n",
"2. Basic operations\n",
" * Variables, Assignment Statements, Expressions\n",
" * Variables, assignment statements, expressions\n",
" * Reading console input\n",
" * Numeric Data Types\n",
" * Operator Precedence\n",
" * Numeric data types\n",
" * Operator precedence\n",
" * Strings\n",
" * Type Conversions\n",
" * Type conversions\n",
" \n",
" \n",
"3. Built-in Functions and Objects\n",
" * Common Functions\n",
" * Objects and Methods\n",
" * Common functions\n",
" * Objects and methods\n",
" * Formatting output with `.format()`\n",
" \n",
" \n",
"4. Branch Logic\n",
" * Boolean Data Types\n",
" * `if` Statements\n",
" * `if` - `else` Statements\n",
" * `if` - `elif` - `else` Statements\n",
" * Boolean data types\n",
" * `if` statements\n",
" * `if` - `else` statements\n",
" * `if` - `elif` - `else` statements\n",
" * Logical operators (`and`, `or`, `not`)\n",
" * Operator Precedence\n",
" * Operator precedence\n",
" \n",
" \n",
"5. Iteration (Loops)\n",
" * `for` Loop\n",
" * `while` Loop\n",
" * Nested Loops\n",
" * `for` loop\n",
" * `while` loop\n",
" * Nested loops\n",
" * `break` and `continue`\n",
" \n",
"\n",
"6. User Defined Functions\n",
" * Introduction\n",
" * Defining Functions\n",
" * Calling Functions\n",
" * Arguments and Parameters\n",
" * Variable Scope\n",
" * Defining functions\n",
" * Calling functions\n",
" * Arguments and parameters\n",
" * Variable scope\n",
" \n",
" \n",
"7. Collections: Lists, Dictionaries, Sets, Tuples\n",
" * Creating\n",
" * Accessing Data\n",
" * Functions - Returning Multiple Values\n",
" * Functions - Pass by Value; Pass by Reference\n",
" * Accessing data\n",
" * Functions - returning multiple values\n",
" * Functions - pass by value; pass by reference\n",
"\n",
" \n",
"8. File I/O\n",
" * Modes: read (`'r'`), write (`'w'`), append(`'a'`)\n",
" * Ways to Read: `read()`, `readline()`, `readlines()`\n",
" * Writing and Closing: `write()`, `close()`\n",
" * Writing and closing: `write()`, `close()`\n",
" * Ways to read: `read()`, `readline()`, `readlines()`\n",
" \n",
"\n",
"9. Hashing\n",
" * Hashing Strings\n",
" * Hashing strings\n",
"\n",
"\n",
"10. Exception Handling\n",
" * Catching exceptions\n",
" * Raising exceptions\n",
" \n",
" \n",
"11. Recursion\n",
" * Introduction\n",
" * Examples\n",
"\n",
"\n",
"12. OOP\n",
" * User-defined Classes\n",
" * User defined classes\n",
"\n",
"\n",
"13. Misc Topics\n"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit f0cb7b2

Please sign in to comment.