give python equivalent of this ruby code: `arr = %w("blink", "freakonomics", and "outliers")` in python

In Python, you can create a list of strings using the following syntax:

main.py
arr = ["blink", "freakonomics", "outliers"]
44 chars
2 lines

This creates a list arr with three strings: "blink", "freakonomics", and "outliers".

related categories

gistlibby LogSnag