1. A compound data type
So far we have seen five types: int, float, bool, NoneType and str. Strings are qualitatively different from the other four because they are made up of smaller pieces — characters.
Types that comprise smaller pieces are called compound data types. Depending on what we are…