i have two seperate lists
list1 = ["Infantry","Tanks","Jets"]
list2 = [ 10, 20, 30]
so in reality, I have 10 Infantry, 20 Tanks and 30 Jets
I want to create a class so that in the end, I can call this:
for unit in units:
print unit.amount
print unit.name
#and it will produce:
# 10 Infantry
# 20 Tanks
# 30 Jets
so the goal is to sort of combine list1 and list2 into a class that can be easily called.
been trying many combinations for the past 3 hrs, nothing good turned out :(