Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 1.46 KB

File metadata and controls

53 lines (31 loc) · 1.46 KB

Week 01 Monday: Programming, Python, and local setup

Learning objectives

  • Explain what a program is and Python use cases.
  • Apply today's ideas in a small Python program.
  • Inspect output and improve the program after a test run.

Concepts students must understand

  • what a program is
  • Python use cases
  • interpreter
  • script

Detailed lesson content

A program is a precise set of instructions. Python reads a script from top to bottom and is a useful first language because its syntax is readable. Verify the interpreter before writing code.

Before coding, describe the input, processing, and output in ordinary language. Run the smallest possible version, then extend it one change at a time. Read the error message before asking for help.

Code example

print('Hello, GeekInk!')

Practical coding activity

Create hello.py, run it from a terminal, and change the greeting.

Guided exercise

Write a three-line script that introduces your town and a problem technology could solve.

Independent exercise

Create about_me.py with your name, goal, and favourite local challenge.

Expected output

A three-line introduction appears in the terminal.

Homework or assignment

Install Python and VS Code; record the version command and output.

Recommended learning resources