Variables and Inputs

Lecture Overview

Topics Covered:

  1. Variables - What they are and how to use them
  2. Data Types - Integers, floats, strings, and booleans
  3. Input and Output - Getting user input and displaying results

Part 1: Variables

Why Do We Need Variables?

The Problem

Imagine you're writing a program for a game:

Without variables, you'd have to:

The Solution: Variables