I've got a list of string elements and I'd like to remove 3 values which are 'English'
, 'english'
, and 'French'
.
I've tried the following code but the operation doesn't work:
x = ['English','english','French','Dutch','Spanish','Japenese','Italian',]
list = np.random.choice(x,100)
y = [elem for elem in list if elem !='English' or elem !='english' or elem !='French']
The final result that I'd like to will be a list without the string values 'English'
, 'english'
, and 'French'
.