<｜begin▁of▁sentence｜>### Instruction:
Given an undirected graph with edge set [(0, 1), (1, 2), (2, 3), (3, 4), (4, 0)], can you use the shorthand notation for VertexSeq.select() to find and print the IDs of all vertices with a degree of 2?
### Response:
from igraph import Graph

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

# Use the shorthand notation to access a subset of vertices
# In this case, selecting vertices with degree 2
selected_vertices = g.vs(degree_eq=2)

# Print out the ids of the selected vertices
print([v.index for v in selected_vertices])
<|EOT|>
