I'm looking for a way to use list comprehensions to achieve the following:
a = [1,2,3,4]
b = [5,6,7,8]
vals = []
for i in a:
for j in b:
vals.append(i*j)
print(vals)
I'm convinced there's a way to do this with list comprehension, but I'm at a loss for how to proceed.