Python Pythonic Way To Replace List Values With Upper And Lower Bound

Python Pythonic Way To Replace List Values With Upper And Lower Bound