{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 1.EXT.1 \u2014 Fundamentals Refresher\n",
    "\n",
    "This is a fast pass, not first-time teaching \u2014 one reminder, one example, one quick check per concept. If something here feels genuinely shaky rather than just a little rusty, flag it to your teacher; that's exactly what this diagnostic is for. Same adventure-game world as everyone else \u2014 you'll be building the same kind of game, just at a faster pace and a higher bar."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Quick Recall: Variables &amp; Data Types\n",
    "\n",
    "Four types you'll use constantly: `str` (quoted text), `int` (whole number), `float` (decimal), `bool` (`True`/`False`, capitalized, no quotes). Python infers the type from the value \u2014 check any variable's type with `type()`."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Example\n",
    "character_name = \"Zara\"\n",
    "health = 100\n",
    "damage_multiplier = 1.5\n",
    "is_alive = True\n",
    "print(character_name, health, damage_multiplier, is_alive)\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Quick check:** create one variable of each type describing a weapon (name, damage, weight, is_magical), then print `type()` of each."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Your quick check here\n",
    "\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Quick Recall: Input/Output &amp; f-strings\n",
    "\n",
    "`input(\"prompt\")` always returns a `str` \u2014 wrap it in `int()`/`float()` for numbers. f-strings drop variables into text: `f\"Hello, {name}!\"`."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Example\n",
    "player_name = input(\"Name? \")\n",
    "gold = int(input(\"Starting gold? \"))\n",
    "print(f\"Welcome, {player_name} \u2014 you begin with {gold} gold.\")\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Quick check:** ask the player for a weapon name and its damage (as a number), then print both in one f-string line."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Your quick check here\n",
    "\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Quick Recall: Operators &amp; Expressions\n",
    "\n",
    "`+ - * /` as expected; `//` floor-divides (drops the remainder), `%` gives just the remainder, `**` is exponent. Comparisons (`== != < > <= >=`) give back a `bool`."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Example\n",
    "attack = 22\n",
    "defense = 7\n",
    "damage_dealt = attack - defense\n",
    "print(damage_dealt, damage_dealt > 10)\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Quick check:** given `total_potions = 23` shared between `4` people, print how many whole potions each person gets and how many are left over."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Your quick check here\n",
    "\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Quick Recall: Conditionals\n",
    "\n",
    "`if` / `elif` / `else` runs the first `True` branch and skips the rest. Combine conditions with `and` / `or` / `not`. Remember: `=` assigns, `==` compares."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Example\n",
    "monster_health = 12\n",
    "if monster_health <= 0:\n",
    "    print(\"Defeated.\")\n",
    "elif monster_health < 20:\n",
    "    print(\"Nearly there.\")\n",
    "else:\n",
    "    print(\"Still tough.\")\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Quick check:** sort a `trust_level` (0.0\u20131.0) into \"low\", \"medium\", or \"high\" using your own thresholds, with `if`/`elif`/`else`."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Your quick check here\n",
    "\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "name": "python",
   "version": "3.11"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
