-
Notifications
You must be signed in to change notification settings - Fork 12
Home
Chee Yim Goh edited this page Apr 5, 2017
·
25 revisions
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!
- Data Types with emphasis on String manipulation
- Variables and Reassignments
- Operator and Operands
- Flow Controls
- Date Structures
- Looping
- Statements and Expressions
- Input and Sanitization
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
- How to create simple program with the basics
- How to create class with functions
- 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:-