An index of 0
in a sequence refers to the first value in the sequence, and an index of −1
refers to the last value. You can use the following syntax to refer to an individual item in a repository:
step1 = odb.steps.values()[0]
print(step1.name)
The resulting output is
Step-1