Calculate with unpacked dimensions

A delivery program stores a parcel's length, width, and height in centimetres, in that order. It runs the following code:


Python
dimensions = (36, 24, 11)
length, width, height = dimensions
difference = length - height


What value does difference contain? Answer in centimetres, to the nearest whole centimetre.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Tuples Questions: