TypeError: Unsupported Operand Type(s) for -: ‘list’ and ‘list’
Sometimes, when you are dealing with lists in Python and when you try to subtract two list using the subtraction operator, you got TypeError: unsupported operand type(s) for -: ‘list’ and ‘list’ error. The reason for getting this error is that in Python we are not allowed to subtract the lists directly using the subtraction …
TypeError: Unsupported Operand Type(s) for -: ‘list’ and ‘list’ Read More »