Python offers some very nice language features for dealing with sequence data types.
A list is a type of sequence, and from a ColdFusion background lists are a familiar data type. List items will be of the same type and are mutable meaning they can be changed in place. Here’s a list, printed:

my_list = [1, 2, 3]
print "my_list:", my_list
# my_list: [1, 2, 3]

So the good stuff: you can actually loop over and change lists in a very succinct way in Python using list comprehensions. They work like this: