-
Notifications
You must be signed in to change notification settings - Fork 12
Home
Target Audience: Non-programmer / beginner
Material is built on top of previous workshop in Python 101.
Important concepts to grasp:-
- Python Environment
- Master the basics
- Reusability of code
We will run through briefly how by installing Python into the OS allows student to run Python program. Some explanation need to be on the area of:-
- Interpreter vs. Compiler to convert source code to byte code and eventually binary form
- Executing program in REPL (shell mode), .py file (source code) and Jupyter Notebook (activecode)
- Make it clear to students that Python is backend language and how web pages are built with HTML/CSS using typically Django/Flask framework
With just the introductions to basic topics, one should be able to code simple program and attempt to write algorithms!
Before you write code, know that there is something call The Zen of Python. Pythoneers hold readability very dearly, specifically the indentation of space.
- Data Types
- Data Structure Part 1: String
- Variables and Reassignments
- Input and Sanitization
- Break to work on To-Do List - Menu
- Operator and Operands
- Statements and Expressions
- Flow Controls
- Break to work on To-Do List - Flow Control
- Data Structure Part 2
- Break to work on To-Do List - Data Structure
- Looping
- Break to work on To-Do List - Looping
The main understanding here is developers typically do not need to reinvent the wheel. Codes written by others can be reuse by many through the concept of Class and Function.
With that, we'll emphasize on:-
- How functions can be have various parameters with the same name (different signature). It is important to recognize which is a function and learn how to use help keyword to use the built-in function
- How we can simply import classes written by others
- Functions and Modules
- Complete the rest of to-do list program
- How to create simple program with the basics
- How to create class with functions
- Create simple To-Do list program (no UI)
- Python 3.x installed
- Jupyter Notebook installed (for simple program execution)
- A text editor (i.e. Notebook++, Visual Studio Code, Atom)
Some fun project for beginners:-