StayTalentReady

Exercises — Outcome 3: Variables, Data Types, and Operators

1 hands-on tasks. Do them in order; each one feeds the Canvas item it names.

25 min · hands-on

1. Variable Exploration

  1. Create variables for your first name (str), age (int), GPA (float), and honor-roll status (bool).
  2. Print each variable and its type using type().
  3. Perform three arithmetic operations (e.g., age + 5, GPA * 2) and print results.
Turn in / bring: Python script and its output submitted to Canvas.
← Outcome 2Outcome 4 →

↑ Back to top