← back to unit
Medium
# variables
Trade Backpacks
Alex and Robin want to trade backpacks for their hike! Given how heavy each person's backpack is, figure out what they'll each be carrying after the swap. 🎒
You're given Alex's backpack weight, then Robin's. Swap the two values, then print Alex's new weight, then print Robin's new weight (two lines).
For example, 5 and 10 → print 10 then 5.
💡 need a hint?
var-swap-backpacks.py🔒 given lines are locked — write your code in between
loading...