Question: Given the initial list provided, use list comprehensions to create and print the following new lists: 1. locations = List of the locations of each
Given the initial list provided, use list comprehensions to create and print the following new lists: 1. locations = List of the locations of each of the attractions - result should be ['Esperance', 'Kulin', 'Lake Ballard',..] 1. Initials = List of the attractions that have three words in their name (do not include the location) - result should be ['Tin Horse Highway', "Worid's tallest bin", ...] Source: https://www.escape.com.au/top-lists/top-10-weirdest-tourist-attractions-in-western-australia/image-gallery veirdest = ["Stonehenge, Esperance", "Tn Horse Highway, Kulin", "Inside Australia, Lake Batlard", "Gnomesville, Weltington Milt", "World's tallest bin, Kalgoorlie", "Dave Evans Bicentennial Tree, Pemberton", "Cowaranup cows, Covaranup", "Corrigin Dog Cemetery, Corrigin", "Wultarbor Links Golf Course, Ceduna to Kalgoorlie", "The Big Canera, Meckering"]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
