Local Git & First Steps in Python

Overview of programming fundamentals, Git basics, and version control setup.

Learning Objectives

  • Explain the purpose of version control and the core concepts of Git.
  • Initialize a local Git repository; apply the add/commit/log/status workflow.
  • Use print() and produce formatted output with f-strings and str.format.
  • Work with basic data types and simple type conversions (int, str).

Session Plan (theory)

  1. Course introduction & tooling
    Course structure, assessment, GitHub Classroom overview.
  2. Git concepts (local only)
    Repository, working directory, staging, commit; git init/status/add/commit/log.
  3. Introduction to Python
    print, comments, variables, type conversion (int, str);
    formatted output with f-strings (f"{name} - {score:.2f}") and str.format, including basic format specifiers (:.2f, :>10).

Hands-on

  • Create a local folder & repository → git init, first commit.
  • Write short Python snippets that:
    • Print text and variables.
    • Format floating-point numbers to two decimals (:.2f) and align text with padding (:>10).
  • (No remotes/GitHub this week — only local repositories.)

Materials

  • Slides: Week 1 – Git & Python Fundamentals (to be uploaded)
  • Command & formatting cheat sheet: git basics and Python formatted output (f-strings, str.format, common specifiers).