This code below is to make a list of the bigger number of the two lists in the same index positions. How can I rewrite this code with a while loop instead of a for loop?
a = [7,12,9,14,15,18,12]
b = [9,14,8,3,15,17,15]
big = []
for i in range(len(a)):
big.append(max(a[i],b[i]))
print(big)
[9, 14, 9, 14, 15, 18, 15]