I have a list
list = ["Hat({})A", "Tie({})B", "Disk({})C"]
And another list:
inventory = ["Hat(1)A", "Hat(43)A", "Shirt(23)E", "Tie(2)B"]
In python, I want to iterate inventory for each item, if it contains the value except for the number, return true. If not, return false.
"Hat(1)A", "Hat(43)A", "Tie(2)B" = TRUE
"Shirt(23)" = FALSE
Anyone know how this can be done? I've tried everything and I'm stuck :(
list = ["Hat({})A", "Tie({})B", "Disk({})C"]
come from? what aboutTie(2)C
would that be true or false?