As contrived as those examples are, Python does have one feature that I currently miss, which is that trailing commas are ignored.
mylist = [
"ape",
"bat",
"cat",
] mylist = [
"ape",
"bat",
"cat",
] list: [
"ape",
"bat",
]
list: [
"ape"
"bat"
]
.. are the same.(list a b c) == (list a, b, c) == (list a b, c)