Getting the range of horizontal distances
lower = min ( mp . keys ( ) ) NEW_LINE upper = max ( mp . keys ( ) ) NEW_LINE for i in range ( lower , upper + 1 ) : NEW_LINE INDENT evalComp ( mp [ i ] ) NEW_LINE DEDENT