<｜begin▁of▁sentence｜>### Instruction:
Given a graph with the edge set [(0, 1), (1, 2), (2, 3)] and vertex attributes 'label' and 'weight' assigned values ['A', 'B', 'C', 'D'] and [10, 20, 30, 40] respectively, how would you retrieve a list of the attribute names for the vertices of the graph?
### Response:
from igraph import Graph

# Create a graph
edges = [(0, 1), (1, 2), (2, 3)]
g = Graph(edges=edges)

# Add some vertex attributes
g.vs['label'] = ['A', 'B', 'C', 'D']
g.vs['weight'] = [10, 20, 30, 40]

# Get the attribute names of the vertices
vertex_attributes = g.vs.attribute_names()

# Print the attribute names
print(vertex_attributes)
<|EOT|>
