We have two lists. L1 = ['Coffee', 'Tea'] L2 = ['Hot', 'Ice']. Using a nested while loop compute the following output: Coffee * Hot * Ice Tea * Hot * Ice
# Python 3.9.5
L1 = ['Coffee', 'Tea']
L2 = ['Hot', 'Ice']
i = 0
while i < len(L1):
print(f'{L1[i]}*{L2[0]}*{L2[1]}')
i += 1
Comments
Leave a comment