This code works just fine, but there's a problem. The name check is repetitive, and adding a new name requires adding even more repetitive, boring checks.
Tuples are an ordered sequences of items, just like lists. The main difference between tuples and lists is that tuples cannot be changed (immutable) unlike lists which can (mutable). Tuples are an ...
# Tuples - They are fixed lists. # we define tuples in parantheses (). # They can't be changed, added to or deleted. # Once created they cannot be changed.