(list(range(5))[3:4] + [999])[0]
(list(range(5))[4:5] + [999])[0]
(list(range(5))[5:6] + [999])[0]
(list(range(5))[6:7] + [999])[0]
How to get the nth element of a python list or a default if not available