Delivery drone concept
📖 Scenario: You are programming a delivery drone that carries packages to different locations in a city. The drone needs to know the packages it carries, the maximum weight it can carry, and then calculate the total weight of the packages to check if it is within the limit.
🎯 Goal: Build a simple program that stores package weights, sets a maximum weight limit, calculates the total weight of packages, and prints whether the drone can carry all packages safely.
📋 What You'll Learn
Create a dictionary with package names and their weights
Create a variable for the drone's maximum weight capacity
Calculate the total weight of all packages using a loop
Print a message showing the total weight and if it is within the limit
💡 Why This Matters
🌍 Real World
Delivery drones need to manage their load carefully to avoid accidents and ensure safe delivery.
💼 Career
Understanding how to manage data and conditions is important for programming drones and other automated delivery systems.
Progress0 / 4 steps