pack_reading(temperature, humidity, pressure) that packs the three arguments into a single tuple and returns it. Then implement unpack_reading(reading) that unpacks such a tuple into three named variables in one line and returns a formatted string.pack_reading(24.5, 60, 1013)
(24.5, 60, 1013)
Three values packed into one tuple.
unpack_reading((24.5, 60, 1013))
'24.5C, 60%, 1013hPa'
Tuple unpacked into temp, hum, pressure in a single assignment.
A tuple literal (a, b, c) packs values automatically.
temp, hum, pressure = reading unpacks in one line.