I have a list of lists as follows:
list1 = ['amazon', 'jeff bezos', '56']
list2 = ['', 'mackenzie bezos', '50']
list3 = ['', 'preston bezos', '20']
list4 = ['microsoft', 'bill gates', '64']
list5 = ['', 'melinda gates', '55']
where
lists = [list1, list2, list3, list4, list5]
Basically, I want the empty fields to be populated by the element in the same index from the previous list. How do I get my output to be as follows?
list1 = ['amazon', 'jeff bezos', '56']
list2 = ['amazon', 'mackenzie bezos', '50']
list3 = ['amazon', 'preston bezos', '20']
list4 = ['microsoft', 'bill gates', '64']
list5 = ['microsoft', 'melinda gates', '55']