Python Forum

Full Version: Need help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
praire_pirates = [['Tractor Jack', 1000, True], ['Plowshare Pete', 950, False], ['Praire Lily', 245, True], ['Red River Rosie', 350, True], ['Mad Athabasca McArthur', 842, False],['Assiniboine Sally', 620, True], ['Thresher Tom', 150, True], ['Cranky Canola Carl', 499, False]]

I am supposed to create a list comprehension to create a list of the market values of each pirates grain, which are the numbers in the list. How do I go on about doing that?

all I have so far is plunder_value = [ ] and I dont know how to start it. Any help would be appreciated
It would start with how you get the grain out of one pirate, and end with looping through the pirates.