Skip to content
Chee Yim Goh edited this page Apr 30, 2017 · 25 revisions

What's in Python 102?

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

Master the basics

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.

Reusability of Code

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

What you'll learn

  • How to create simple program with the basics
  • How to create class with functions
  • Create simple To-Do list program (no UI)

What you'll need

  • Python 3.x installed
  • Jupyter Notebook installed (for simple program execution)
  • A text editor (i.e. Notebook++, Visual Studio Code, Atom)

Learn by Doing

Some fun project for beginners:-

Credits

Recommended Blogs