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/statusworkflow. - Use
print()and produce formatted output with f-strings andstr.format. - Work with basic data types and simple type conversions (
int,str).
Session Plan (theory)
- Course introduction & tooling
Course structure, assessment, GitHub Classroom overview. - Git concepts (local only)
Repository, working directory, staging, commit;git init/status/add/commit/log. - Introduction to Python
print, comments, variables, type conversion (int,str);
formatted output with f-strings (f"{name} - {score:.2f}") andstr.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:
gitbasics and Python formatted output (f-strings,str.format, common specifiers).