A Python list is a sequence (ordered collection) of Python objects. Because it is a sequence like a string it shares characteristics such as indexing & slicing, iteration (for) and membership (in) as well as functions such as len(). One importance difference is that lists are mutable (strings are immutable). Tuples are immutable lists.
Chapter 7: Lists
A list is a sequence of Python objects delimited by square brackets and separated by commas. Any mixture of objects is allowed.
Tuples are immutable lists – handy if you want a list that cannot be changed. Tuples are delimited by parentheses.
In number theory, a perfect number is a positive integer that is equal to the sum of its positive divisors (excluding the number itself). Here we find the perfect numbers that are less than some value.
What do these words have in common: pig, table, cab, real, yet, and ride?
Once you figure that out, what other English words have this characteristic? Let's write a program.