Macy's interview question

Fill Null values in the list with previous values using python.