I have two lists list1 and list2 of numbers, and I want to iterate over them with the same instructions. Like this:
list1
list2
for item in lis
How about this:
for item in list1 + list2: print(item.amount) print(item.total_amount)
Only 3 lines