Im trying to pull names from an API. Here is how part of the API looks
names: [ "name1", "name2", "name3", "name4", ],
The names are random per request so you cant pull by name. Here is what i have tried
response = requests.get(url)
name = response.json()['names']
print(name)
But when i print the response i get ['name1', 'name2', 'name3', 'name4',] How would i be able to remove the [],' to only have the names?