Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Oct 3, 2025

This PR adds a practical, drone-themed Python example file to make learning about variables and data types more engaging for RobotX Workshops students.

Changes

Created 01_variables_and_data_types.py with four fundamental data type examples using a drone scenario:

  • Integer (altitude_meters): Demonstrates whole number values for drone altitude measurement
  • Float (battery_voltage): Shows decimal precision needed for voltage readings
  • String (drone_model): Illustrates text data for storing drone model names
  • Boolean (is_armed): Explains true/false states for safety-critical motor arming status

Each variable includes detailed comments explaining why that specific data type is appropriate for the use case, helping students understand the reasoning behind data type selection.

Example Output

Drone altitude: 50 meters
Battery voltage: 12.6V
Drone model: DJI Mavic Air 2
Drone armed status: False

--- Drone Status Summary ---
Model: DJI Mavic Air 2
Altitude: 50 meters
Battery: 12.6V
Armed: False

This practical example provides students with relatable, real-world context from the drone workshops, making abstract programming concepts more concrete and memorable.

Original prompt

Make the Variables Example Relevant
This prompt refines the first file by adding context from our drone workshops, making it more engaging for students.

In the file 01_variables_and_data_types.py, add practical examples using a drone scenario.

  • An integer for altitude_meters.
  • A float for battery_voltage.
  • A string for drone_model.
  • A boolean for is_armed.
    Ensure each example has comments explaining why that data type is used.

💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: anjrew <26453863+anjrew@users.noreply.github.com>
@Copilot Copilot AI changed the title Make the Variables Example Relevant This prompt refines the first file by adding context from our drone workshops, making it more engaging for students. In the file 01_variables_and_data_types.py, add practical examples using a drone scenario. - An ... Add drone-themed variables and data types example for RobotX Workshops Oct 3, 2025
@Copilot Copilot AI requested a review from anjrew October 3, 2025 15:51
Copilot finished work on behalf of anjrew October 3, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants