By using a basic nested for loop, and not using list comprehension, create a list called ans7
Fantastic news! We've Found the answer you've been seeking!
Question:
By using a basic nested for loop, and not using list comprehension, create a list called ans7 of all possible lists, each of which contains a number from l1, a number from l2, and the product of the two numbers.
l1 = list(range(5))
l2 = list(reversed(l1))
l1, l2
([0, 1, 2, 3, 4], [4, 3, 2, 1, 0])
Related Book For
Using Microsoft Excel and Access 2016 for Accounting
ISBN: 978-1337109048
5th edition
Authors: Glenn Owen
Posted Date: