d = {(0): lambda : 'Performing Step 0', (1): lambda : 'Performing Step 1',
    (2): lambda : 'Performing Step 2', (3): lambda : 'Performing Step 3', (
    4): lambda : 'Performing Step 4'}
for index, switch in enumerate([1, 0, 1, 1, 0]):
    if switch == 1:
        d[index]()
Storing Functions in Dictionary [Python]