Ask Your Question

Revision history [back]

Using a dictionary might help here.

Example:

sage: from sage.homology.simplicial_set import AbstractSimplex, SimplicialSet
sage: v = {i: AbstractSimplex(0) for i in range(4)}
sage: v[0]
Delta^0
sage: v[1]
Delta^0
sage: v[2]
Delta^0
sage: v[3]
Delta^0