I'm feeling extra dumb tonight. If I have a basic multi-dimensional list:
my_list = [['Bob', 43, 'Tall', 'Green'],
['Sally', 32, 'Short', 'Blue'],
['Tom', 54,'Medium','Orange']]
I can easily use a list comprehension to grab the first column:
new_list = [row[0] for row in my_list]
or I can grab 3 columns:
new_list = [row[0:3] for row in my_list]
but how would I grab columns 1 and 3 only?
new_list = [row[0,2] for row in my_list]
if not with a list comprehension, then how to accomplish with the least amount of code?