I am doing a mini project and i have encountered the problem suggested in title. Below is a example:
list = ["bird", "deer", "dog", "bat"]
list -= "bird"
print list
and the error says:
TypeError: unsupported operand type(s) for -=: 'list' and 'str'
This seemed like an omnipresent questions so i searched it up but couldn't found the relevant answer, very sorry if this question is repeative to others on this site. Help will be greatly appreciated!