Program.__getitem__

Program.__getitem__(index)[source]

Allows indexing into the program to get an action.

Parameters:index (Union[slice, int]) – The action at the specified index.
Return type:Union[AbstractInstruction, Program]
Returns: