From 1ebe4714bb9ac2c33605c1b0d15789940337c8ea Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 3 Oct 2025 15:48:48 +0000 Subject: [PATCH 1/2] Initial plan From 49606da4c8d4fff2b6a7593eb60d93c4143a71b5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 3 Oct 2025 15:52:13 +0000 Subject: [PATCH 2/2] Add 04_data_structures.py with robotics examples Co-authored-by: anjrew <26453863+anjrew@users.noreply.github.com> --- 04_data_structures.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 04_data_structures.py diff --git a/04_data_structures.py b/04_data_structures.py new file mode 100644 index 0000000..a34d4ee --- /dev/null +++ b/04_data_structures.py @@ -0,0 +1,24 @@ +""" +Data Structures Examples - Robotics Edition +This file demonstrates basic Python data structures using robotics examples. +""" + +# List example: Flight path with coordinate tuples +flight_path = [(0, 0), (5, 10), (10, 10)] + +print("Flight Path Waypoints:") +for waypoint in flight_path: + print(f" Waypoint: {waypoint}") + +print() # Empty line for better readability + +# Dictionary example: Sensor readings +sensor_readings = { + "gyro": 0.05, + "accel": 9.81, + "temp": 25.3 +} + +# Access and print the "accel" value +print("Sensor Readings:") +print(f" Accelerometer: {sensor_readings['accel']} m/s²")