Steps are stored in the steps repository under the Odb object. The key to the steps repository is the name of the step. The following statements print out the keys of each step in the repository:
for stepName in odb.steps.keys():
print stepName
The resulting output is
Step-1
Step-2
Step-3
Note:
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