Skip to main content
PSUT / IoTEngineering learning studio
WORKSPACE
Offline-first portalDr. Mohammad Alja’afreh
Cyber Defense StudioIoT Security and PrivacyExperimentsWorkspaces
ENGINEERING WORKSPACE
Home/WSL Laboratories/Lab 1 · Hardware & first boot
IoTPSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
Pi foundations / R1
IoT Programming and Applications

Lab 1 · Hardware & first boot

Ask Dr. Mohammad · R1 →

Installing WSL plays the role of “Raspberry Pi Imager + first boot”: an OS image, a first user, updates.

Design experiment & verify evidence →
R1 · Laboratory mentorAsk about the current experiment, its algorithms or Python notebook.
Ask Dr. MohammadAdaptive practice
Learning workflow · Core IoT & programmingR1 · Hardware & first boot
Readiness checksRevision deckEngineering workspaceRecord evidence
R1 · Academic orientation

Scope and objectives

Scope of the experiment

Identify Ubuntu distribution, architecture and WSL environment; distinguish it from a physical Raspberry Pi.

The focus of this experiment is to distinguish distribution, kernel, architecture and physical-board identity. Students then interpret boot, memory and disk readiness from system inspection, and verify readiness without claiming access to a physical GPIO header. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.

Learning objectives

  • Distinguish distribution, kernel, architecture and physical-board identity.
  • Interpret boot, memory and disk readiness from system inspection.
  • Verify readiness without claiming access to a physical GPIO header.
  • Identify the configured inputs (Runtime; Distribution; uname -m; Available RAM (MiB); Free disk (MiB)) and record the corresponding observed outputs with units where applicable.
  • Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.

Expected learning outcomes

On completion, students can distinguish distribution, kernel, architecture and physical-board identity, interpret boot, memory and disk readiness from system inspection, and verify readiness without claiming access to a physical GPIO header.

Required deliverables

Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing verify readiness without claiming access to a physical GPIO header. Separate predicted values from observations.

Prerequisite knowledge and related learning

Review the foundational terminology in Concepts and confirm readiness using the existing setup instructions. After completion, continue to Lab 2 · GPIO header & numbering.

Environment and experimental methodology

Browser teaching model, the named WSL or Python environment, and the physical board/components only for the hardware activity described in the practical instructions.

Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.

R1 / PREPARE

Before starting

Follow the setup guide and use the named terminal or editor. A browser model is not a real GPIO measurement or a running service.

Ubuntu WSL setup →
Before you run / verification gate

Install and verify the Ubuntu toolkit before subsequent labs. If WSL already exists, do not reinstall or unregister it.

CONCEPTS / ACTIVE RECALL

Understand the experiment

Scientific architecture · Linux host and WSL readiness

Boot environment and readiness — Windows host / WSL2 VM; Linux kernel / uname -m; Distribution / cat /etc/os-release; Resource check / free -m; df -h; Runtime ready / not physical GPIO
Scientific concept map: Windows host — WSL2 virtualization; Linux distribution — Ubuntu or Kali; Kernel & architecture — uname -m; Resource check — free -m / df -h; Runtime decision — Linux ready ≠ physical Pi.

Scientific foundations and analytical reasoning

A distribution packages user-space tools; the kernel manages resources and the instruction-set architecture defines executable compatibility. WSL is a Linux execution environment, not evidence of a physical Pi.

Before operating the equipment or executing the program, derive the expected outcome using the required theoretical work in Experiment. Use the diagram to identify the variables and system boundaries.

Scientific theory · Execution layers and compatibility

A Raspberry Pi boots firmware and a Linux kernel on ARM hardware; WSL runs a Linux distribution within the Windows-managed environment. The distribution name identifies the user-space packages, whereas uname -m describes the running architecture. A package built for a different architecture cannot be assumed to execute natively. A virtual environment isolates Python dependencies but does not grant GPIO access.

Worked example and engineering interpretation

Compare uname -m, /etc/os-release, available disk and memory on the host. An x86_64 WSL system can execute a Python mock that models an LED, but that output is not evidence that a physical Pi header changed voltage. Separate environment readiness from electrical validation.

Engineering principles · additional worked teaching example

The OS distribution, kernel, CPU architecture and hardware identity describe different layers. Memory reported by WSL is a virtual-machine allocation; it need not equal the Windows host capacity. A 2048 MiB allocation equals 2 GiB because 1 GiB=1024 MiB; 1536 MiB free minus a 512 MiB reserve leaves 1024 MiB for a fixture. Verify with free -m and df -m, not a board illustration.

From theory to experiment

Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.

How to investigate Lab 1 · Hardware & first boot

Identify Ubuntu distribution, architecture and WSL environment; distinguish it from a physical Raspberry Pi.

Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.

Experiment-specific guided practice

Objective: Identify Ubuntu distribution, architecture and WSL environment; distinguish it from a physical Raspberry Pi.

  1. Use the Ubuntu WSL preset. Inspect the modeled os-release, uname and storage output.
  2. Switch runtime to Windows shell and explain why /etc/os-release is not a valid Windows command.
  3. Set aarch64 on WSL, then native Linux; neither architecture proves physical board identity.
  4. Set free disk below the declared 512 MiB exercise budget. Compare the browser readiness test with cat /etc/os-release, uname -m and df -h / on your actual installation.

Reference check:

Model boundary:

Independent task and submission evidence

2. Switch runtime to Windows shell and explain why /etc/os-release is not a valid Windows command. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.

Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.

TrialChanged settingFixed settingsPredicted resultActual observation / unitsEvidence / uncertainty
A: baselineReferenceRecordPredictRecordRecord
B: one changeRecordSame as APredictRecordRecord
A: repeatRestoreSame as APredictRecordRecord

Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.

Worked engineering reasoning and boundary conditions

Engineering reference configuration: Runtime = WSL2; Distribution = Ubuntu 24.04; uname -m = x86_64; Available RAM (MiB) = 4096; Free disk (MiB) = 10000. In the classroom model, Linux shell ready = Yes; Space for 512 MiB fixture = Yes. Values are configurable host fixtures, not actual system probes. A closed, deterministic browser model. The existing practical instructions and source files provide independent execution; browser results are not hardware measurements.

Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.

Concept animation · independent state notebook

Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.

Lab 1 · Hardware & first boot: independent state notebook123456Calculated state 1Event / itemcat /etc/os-releaseObserved resultUbuntu 24.04

Step 1 of 6 · Calculated state 1

Calculated state 1

Event / item
cat /etc/os-release
Observed result
Ubuntu 24.04

Teaching example only; inspect live calculations or real practical evidence separately.

Recall the concept before revealing its explanation.

0 / 3 revealed
R1 · 01 / 08Why use WSL?Reveal explanation
Engineering explanation

Ubuntu provides a Linux execution environment on Windows; it does not emulate Pi electrical hardware.

R1 · 02 / 08What proves the environment?Reveal explanation
Engineering explanation

Check the distribution and kernel, not a picture of a board.

R1 · 03 / 08Which environment checks let you reuse an existing Ubuntu WSL distribution safely?Reveal explanation
Engineering explanation

Install and verify the Ubuntu toolkit before subsequent labs. If WSL already exists, do not reinstall or unregister it.

R1 · 04 / 08Why compare uname -m with the distribution name?Reveal explanation
Engineering reasoning

The architecture describes the running CPU ABI; /etc/os-release identifies the installed Linux distribution. Neither establishes access to Raspberry Pi peripherals.

R1 · 05 / 08Why preserve an existing WSL distribution?Reveal explanation
Engineering reasoning

Unregistering deletes its filesystem. Verify and reuse the installed distro instead of reinstalling it for every lab.

R1 · 06 / 08A Linux shell is running under WSL. Select every technically valid statement. A. Distribution and kernel output identify the environment. B. Successful mock execution does not prove physical GPIO behavior. C. WSL automatically exposes every Pi header pin. D. A shell screenshot establishes electrical measurements.Reveal explanation
Applied scenario

Correct: A. Distribution and kernel output identify the environment.; B. Successful mock execution does not prove physical GPIO behavior.

R1 · 07 / 08In Hardware & first boot, which command or code executes Update package metadata?Reveal explanation
Implementation recall

sudo apt update

R1 · 08 / 08For Hardware & first boot, which actual output or state confirms the prescribed practical run succeeded, and what does it not establish?Reveal explanation
Evidence & acceptance

PowerShell: run wsl --list --verbose first. If Ubuntu-24.04 is present, do not reinstall or unregister it. Enter wsl -d Ubuntu-24.04, create the Linux user if first launch, then check /etc/os-release. Host x86_64 is normal; WSL is not Raspberry Pi hardware. apt update requires internet. Install the toolkit through Setup before later labs.

Execution boundary · Real Linux + hardware by discussion. Browser simulation below is a teaching model, not execution of Python or firmware. The real commands run in VS Code/WSL; Wokwi is used for Arduino/ESP32 where indicated.
Raspberry Pi architecture. Board → firmware/OS → application.
Raspberry Pi architecture. Board → firmware/OS → application.
Shared research workbenches · network designer & advanced studies
Concurrent-device simulation & Monte Carlo research
Distributed digital twin · topology, protocol & battery research
Loading experiment-specific apparatus…
Previous model / additional reference tools
Simulation task

Identify Ubuntu distribution, architecture and WSL environment; distinguish it from a physical Raspberry Pi.

Explore the model using its own controls. Record a prediction before changing a condition. Compare the reference with a changed condition, then use the Experiment tab for the procedure, acceptance criteria and notebook. Model outputs and physical observations must remain separate.

Interactive engineering workbenchR1 · Existing model
01 / Explore

Interactive lab simulation

Browser model
R1 · Model-linked instrumentation

Visual observation lens

Back to controls ↑

Original virtual instrument; model signals and execution trace.

Loading instrument…

Awaiting model display.

Experimental instrumentation · A/B

Compare two model conditions

Capture a baseline, change one experimental condition, run the model if required and capture the comparison. Snapshots contain visible controls and display text, not physical sensor readings. Review before exporting.

Open simulation view
Baseline A
Not captured
Comparison B
Not captured

Capture a baseline to begin.

Evidence portfolio →
V19.0 · Contextual AI workspace

Ask your engineering assistants

R1 · current context

Ask Dr. Mohammad locally, or prepare an experiment-aware prompt for ChatGPT, Gemini or Claude. The external providers open in their own tabs; nothing is automatically submitted.

Dr. Mohammad · offline
Dr. Mohammad

Offline curriculum-grounded assistance.

Open local tutor
Lab 1 · Hardware & first boot

Public course objective, displayed commands, source excerpts and procedure. Private assessment content is not collected.

Prepare a contextual AI prompt

0 characters

Common secret and email patterns are redacted on preparation; this is not a comprehensive privacy filter. Review the entire editable prompt, including student work and unpublished research, before sharing. The providers apply their own accounts, privacy settings and limits.

Prepare → review → copy & open your selected provider → paste and submit there.

Run & verify — acceptance checklist

Build verification: Host Linux commands executed; WSL installation pending.

PowerShell: run wsl --list --verbose first. If Ubuntu-24.04 is present, do not reinstall or unregister it. Enter wsl -d Ubuntu-24.04, create the Linux user if first launch, then check /etc/os-release. Host x86_64 is normal; WSL is not Raspberry Pi hardware. apt update requires internet. Install the toolkit through Setup before later labs.

Record the actual output, source (mock/model or physical), and any error. A missing tool, timeout or untested external service is not a pass.

Complete lab-by-lab verification report →Open automated verification center → Ask Engineering Copilot →

Independent theoretical exercises

Before the simulation or practical, solve both experiment-specific tasks. List the given inputs, show the intermediate calculation or state trace, identify the expected observation, and state a limitation. Show formulas and intermediate calculations where relevant, or draw the requested state/sequence diagram. These are independent classroom fixtures; where they differ from the reference configuration below, do not treat them as measured values. Compare your predictions with the corresponding experiment afterwards.

01 · Predict and derive using the given inputs

Convert 4096 MiB RAM and 10000 MiB free storage to GiB. Determine whether a 512 MiB fixture fits with 10% of the initial free storage reserved.

02 · Compare or justify using evidence

Explain what each of cat /etc/os-release, uname -m and df -h / establishes, and what none establishes about a physical GPIO header.

03 · Scenario analysis

Scenario analysis · Independent work

A WSL guest reports 3072 MiB free disk, and a 2.5 GiB download must leave 768 MiB free. Is there enough space? What else must be verified before assuming this is a Raspberry Pi?

Work is saved locally when browser storage is available. Export it for submission; no remote upload or automatic grade is assigned.

Expanded independent theoretical exercise bank

Progress from calculation and interpretation to diagnosis and controlled engineering design. Complete the questions without opening the simulation first; show intermediate steps.

Intermediate · Explain a changed-input result

Independent theoretical exercise · R1-01

Use the reference configuration (Runtime = WSL2; Distribution = Ubuntu 24.04; uname -m = x86_64; Available RAM (MiB) = 4096; Free disk (MiB) = 10000), but change Free disk (MiB) = 0. The model reports Space for 512 MiB fixture = No. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.

Intermediate · Interpret a state transition

Independent theoretical exercise · R1-02

The reference model reports Space for 512 MiB fixture: Yes. Under Free disk (MiB) = 0 it reports No. Explain which configured condition changed and what the two outputs establish, and what they do not establish.

Intermediate · Interpret a technical trace

Independent theoretical exercise · R1-03

For Runtime = Windows shell, the model supplies this excerpt from Execution observations: Event / item · Observed result cat /etc/os-release · Not a Linux shell uname -m · Not executed free -m · Not executed df -h / · Not executed Runtime evidence · Windows shell Count rows whose Observed result value is exactly “Not executed”, and identify the displayed row numbers. Explain what the count describes.

Advanced · Reverse reasoning

Independent theoretical exercise · R1-04

An observation is Linux shell ready = No. Candidate A uses Runtime = WSL2; Distribution = Ubuntu 24.04; uname -m = x86_64; Available RAM (MiB) = 4096; Free disk (MiB) = 10000. Candidate B changes the listed settings (Runtime = Windows shell) and keeps the remaining settings fixed. Which is consistent with the observation? If both can explain it, say what additional evidence is required.

Advanced · Diagnose a reported mismatch

Independent theoretical exercise · R1-05

A student configures Free disk (MiB) = 100 while preserving all other reference settings, but copies the reference report of Space for 512 MiB fixture = Yes. Evaluate whether the report is justified. Identify the first configuration/output check to perform.

Challenging · Design a controlled verification

Independent theoretical exercise · R1-06

Design a controlled comparison for Lab 1 · Hardware & first boot using reference Runtime = WSL2; Distribution = Ubuntu 24.04; uname -m = x86_64; Available RAM (MiB) = 4096; Free disk (MiB) = 10000 and test Free disk (MiB) = 0. Specify the changed setting(s), measured metric Space for 512 MiB fixture, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.

Step-by-step experimental procedure

Identify Linux distribution, architecture and runtime rather than confusing WSL with a physical Raspberry Pi.

1 · Reference workbench configuration

Use the named reference workbench and its reference inputs. Additional live instruments may have different controls; use the matching instrument. Record virtual and practical results separately.

RuntimeWSL2
DistributionUbuntu 24.04
uname -mx86_64
Available RAM (MiB)4096
Free disk (MiB)10000

2 · Perform the investigation in order

  1. Use the Ubuntu WSL preset. Inspect the modeled os-release, uname and storage output.
  2. Switch runtime to Windows shell and explain why /etc/os-release is not a valid Windows command.
  3. Set aarch64 on WSL, then native Linux; neither architecture proves physical board identity.
  4. Set free disk below the declared 512 MiB exercise budget. Compare the browser readiness test with cat /etc/os-release, uname -m and df -h / on your actual installation.

3 · Compare controlled trials

TrialIndependent changeExpected checkObservation
Ubuntu WSLUse reference inputs aboveLinux shell ready: YesRecord actual result
Windows shellRuntime = Windows shellLinux shell ready: NoRecord actual result
Low storageFree disk (MiB) = 100Space for 512 MiB fixture: NoRecord actual result

4 · Analyze and report

Distinguish distribution, CPU architecture, kernel and actual hardware.

Required evidence: Record the named metrics and trace for the reference and changed cases, then attach the corresponding practical command output or device evidence if available.

Model boundary: A closed, deterministic browser model. The existing practical instructions and source files provide independent execution; browser results are not hardware measurements.

Controlled investigation · reproducible evidence

Method. Use the existing reference workbench configuration and the named controlled changes below. A controlled variable stays fixed while the independent variable is intentionally changed; the dependent variable is the resulting observed output. First predict each trial from the Concepts page. Run the baseline, then change only the specified setting and record the outcome. For deterministic traces one execution per case and a repeated verification are sufficient; for timing or stochastic measurements repeat at least five times, recording each run, median and range. Reset to the reference state between independent comparisons.

TrialIndependent changeDependent observation
Ubuntu WSLUse reference inputs aboveRecord actual outcome and units
Windows shellRuntime = Windows shellRecord actual outcome and units
Low storageFree disk (MiB) = 100Record actual outcome and units

Evidence: attach the completed comparison table, one trace or screenshot per condition, and actual practical terminal/hardware evidence where applicable. Explain any prediction mismatch and distinguish modeled behavior from measured results.

Loading laboratory-specific procedure…

Independent implementation sequence

  1. Install the environment
  2. Identify the actual host
  3. Update package metadata
02 / Implement

Step-by-step instructions

Before you run / verification gate

Install and verify the Ubuntu toolkit before subsequent labs. If WSL already exists, do not reinstall or unregister it.

Complete one-time setup first. Copy one command block at a time into the indicated environment. Do not copy prompt characters. Open new terminals where named; variables are terminal-specific. Ctrl+C stops a running foreground command.

01

Install the environment

Complete the setup guide once. WSL is Ubuntu running on your PC, not an emulated Pi board.

Checkpoint Complete the action before continuing.
02

Identify the actual host

Run these commands in the VS Code WSL terminal.

WSL · Bash
cat /etc/os-release
uname -m
nproc
free -h
df -h /
hostname
✓ Expected: The Linux host name is printed.
Expected result for each action (6)
  1. cat /etc/os-releaseUbuntu and version ID, e.g. 24.04.
  2. uname -mHost CPU architecture appears, commonly x86_64 or aarch64; it does not identify a physical Raspberry Pi.
  3. nprocA number of available logical CPUs is printed.
  4. free -hMem and Swap rows.
  5. df -h /The filesystem containing / is listed with human-readable capacity, used space and available space.
  6. hostnameThe Linux host name is printed.
Checkpoint Ubuntu 24.04; CPU architecture and memory describe your computer, not a Raspberry Pi.
03

Update package metadata

Run this only when you need to refresh the package lists.

WSL · Bash
sudo apt update
✓ Expected: Repository metadata is refreshed and the prompt returns without repository errors.
Checkpoint No repository errors.

Experimental notebook

Record your own results. Values are not prefilled or independently verified.

03 / Inspect

Source code and method

Use the inline source or commands in the steps above. No separate source file is required for this foundational lab.

04 / Verify

Evidence of completion

Save the actual terminal output from the checkpoints above. For simulated inputs explicitly record browser model, fakepi, mock or Wokwi. Never present those data as physical measurements. If a checkpoint fails, see the troubleshooting guide.

Python / Google Colab laboratory

R1 · 9 notebook cells · 2 executable Python cells

Complete the theoretical investigation first. Run the cells in order, record actual outputs and compare against your prediction.

How to execute

  1. Download this notebook and open Google Colab. Select File → Upload notebook and choose the downloaded .ipynb.
  2. Read the Markdown instructions before each executable cell. Use a Python runtime, run cells from top to bottom, and resolve imports if necessary.
  3. Perform the baseline and controlled changes. Save the notebook with actual outputs and your written interpretation.

Execution scope: Default computational cells passed isolated local Python execution; physical equipment and live services require separate verification.

01Instructions · Markdown
# R1 · Lab 1 · Hardware & first boot **PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh** ## 1. Scientific objective Identify Linux distribution, architecture and runtime rather than confusing WSL with a physical Raspberry Pi. Complete the analytical worksheet in the portal first. Record your predictions before running this notebook. This notebook is a bounded local computational investigation; use the portal’s separate WSL, hardware or Remix procedure for real interfaces.
02Instructions · Markdown
## Experiment-specific preparation Identify Ubuntu distribution, architecture and WSL environment; distinguish it from a physical Raspberry Pi. **Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):** 1. Use the Ubuntu WSL preset. Inspect the modeled os-release, uname and storage output. 2. Switch runtime to Windows shell and explain why /etc/os-release is not a valid Windows command. 3. Set aarch64 on WSL, then native Linux; neither architecture proves physical board identity. 4. Set free disk below the declared 512 MiB exercise budget. Compare the browser readiness test with cat /etc/os-release, uname -m and df -h / on your actual installation. **Evidence:** **Boundary:**
03Instructions · Markdown
## 2. Reference configuration and investigation 1. Use the Ubuntu WSL preset. Inspect the modeled os-release, uname and storage output. 2. Switch runtime to Windows shell and explain why /etc/os-release is not a valid Windows command. 3. Set aarch64 on WSL, then native Linux; neither architecture proves physical board identity. 4. Set free disk below the declared 512 MiB exercise budget. Compare the browser readiness test with cat /etc/os-release, uname -m and df -h / on your actual installation. Run cells in order; do not substitute model results for physical measurements.
04Instructions · Markdown
## 3. Inspect the notebook runtime (not the student WSL or Raspberry Pi).
05Python · executable cell
PYTHON · Code cell
# =====================================================================
# R1 | Code cell 01 | Lab 1 · Hardware & first boot
# Purpose: 3. Inspect the notebook runtime (not the student WSL or Raspberry Pi).
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
import platform, shutil
print(platform.system(), platform.machine(), platform.python_version())
print("Notebook free disk (MiB):",shutil.disk_usage(".").free//2**20)
Ask Dr. Mohammad about this cell
06Instructions · Markdown
## 4. Evaluate the assigned readiness budget using explicit fixture values.
07Python · executable cell
PYTHON · Code cell
# =====================================================================
# R1 | Code cell 02 | Lab 1 · Hardware & first boot
# Purpose: 4. Evaluate the assigned readiness budget using explicit fixture values.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Set free_mib for the next computation or reference condition.
free_mib=10000
# Set minimum_mib for the next computation or reference condition.
minimum_mib=512
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert free_mib>=minimum_mib
print("Budget met:",free_mib>=minimum_mib)
Ask Dr. Mohammad about this cell
08Instructions · Markdown
## Experimental analysis and submission 1. Record the reference input, predicted output and actual result. 2. Modify one independent variable and run the relevant cells again. 3. Explain the result using the theory and identify model limitations. 4. Save the notebook with outputs and retain the separate theoretical worksheet. **Your derivation and conclusion:** (Complete independently.)
09Instructions · Markdown
## Guided reasoning and evidence A controlled comparison changes one independent input while keeping the other relevant inputs fixed; the dependent variable is the recorded output. Use this lab’s reference condition above. **Independent task:** 2. Switch runtime to Windows shell and explain why /etc/os-release is not a valid Windows command. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat. | Trial | Input/configuration | Prediction | Observation | Evidence / limitation | |---|---|---|---|---| | A | Reference | | | | | B | Changed input | | | | | A repeat | Reference | | | | A conclusion is supported only when it cites the recorded values or observed states and explains them with the experiment theory.