Add drone-themed variables and data types example for RobotX Workshops #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:altitude_meters
): Demonstrates whole number values for drone altitude measurementbattery_voltage
): Shows decimal precision needed for voltage readingsdrone_model
): Illustrates text data for storing drone model namesis_armed
): Explains true/false states for safety-critical motor arming statusEach 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
This practical example provides students with relatable, real-world context from the drone workshops, making abstract programming concepts more concrete and memorable.
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.