CS50: Introduction to Programming with Python

Jul 21, 2024

CS50: Introduction to Programming with Python

Week: Functions and Variables

Lecturer: David Malan

Introduction

  • Goal: Introduce functions and variables in Python.
  • Tool: Visual Studio Code (VS Code).
  • Code can be written in any text editor (Google Docs, Microsoft Word, etc. are possible but impractical).

Writing Python Code

  • File Creation: Python files end with .py, e.g., hello.py.
  • Terminal Window: Used to interact with the system via CLI (Command Line Interface).

First Python Program

  • Simple program: `print(