May-12-2020, 05:00 AM
There are several options, one of them presented below (unpack, calculate, output):
spam = [[5, 6, 7], [50, 60, 70]] for item in spam: first, second, third = item print(f'{first}: {second * third}')Output of this code will be:
Output:5: 42
50: 4200
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.