Skip to main content
Store places on a town map as tuples, work out how far a delivery drone flies to each one, and swap the order of its stops in one line. Open Lab 18 in the IP Lab Portal

What you will practice

  • Create and index tuples
  • Unpack tuples in a for loop
  • Swap values in one line

Before you start

Time

15 minutes

Where

IP Lab Portal

Module

Module 7: Tuples and sets

  • In the IP Lab Portal, open Lab 18 - Coordinates with tuples.
  • In class, this lab comes right after the Lesson 2 recap slide in Module 7 core material.