Since you need to refer to some of these percentile outputs several times, you might initially assign them to ``q1, med, q3`` and then keep using these local variables instead of all the dictionary lookups.