Practice: Tuple Methods

« Read the chapter

Q21. Frozen list

AdvancedConceptual

A tuple holds a list. Can the list change? Explain.

Goal: Understand shallow immutability.

Q22. Weekend check

IntermediateApplication

Given days = ('Mon','Tue','Sat','Sun'), print how many days are weekend days ('Sat' or 'Sun') using count.

Goal: Apply count.

Q23. Range of readings

IntermediateApplication

Print the difference between the highest and lowest value in (12, 40, 7, 23).

Goal: Apply min and max.