- Kevin Cunningham
- Individuals who would like to learn the principles of computer programming.
- Uses Python as an introductory language.
- None
- Learn to think programmatically
- Understand basic data structures
- Understand basic control loops
- Solve numerous practical programming examples
- 3 Days (delivered over 4 shorter days)
- Introduction to the instructor
- Delegate introductions
- Course overview
- Questions
- What is Python
- Common uses for Python
- How Python programs work
- Running a Python program
- REPL (Read-Eval-Print Loop)
- IDEs: PyCharm, VS Code, Spyder
- Jupyter Notebooks
- Python Hello World
- Problem Decomposition
- Abstraction & Modeling (e.g., London Underground Map)
- Logical and Algorithmic Thinking
- What is an Algorithm
- Example: How to book a holiday
- Evaluation or Testing of Solutions
- Exercises in teams (2-3 people):
- How to get to the cafeteria
- Smiley Face Exercise
- Chicken, Sack of Corn, and the Fox River Crossing
- Variables, Symbol Names, and Values
- Variable declarations
- Naming conventions
- Variable values
- Numerical Data Types in Python
- Integers
- Floating-point numbers
- Arithmetic operations
- String operations
- Converting numbers to strings
- Basic string formatting
- Conditional statements
if,if-else,if-elif- Boolean Logic
- Counted Loops (
forloop) - Conditional Loops (
whileloop)
- Abstracting logic
- Defining functions
- Calling functions
- Parameter passing
- Default parameter values
- Mandatory and optional parameters
- Named parameters
- Returning values
- Mutable and Immutable types
- Tuples
- Lists
- Sets
- Dictionaries
- Obtaining a file reference
- File access modes
- Reading from a file
- Writing to a file
- Using
withfor file handling - Simple exception handling
- Renaming and deleting files
- Introduction to Modules
- CSV module
- Reading CSV data from a file
- Writing data to a CSV file