array=["사과","자두","초콜릿","바나나","체리"]
output=[fruit for fruit in array if fruit != "초콜릿"]

print(output)
816a21432f3dc081754df6b3ae8452a3f1fcfeb2
<mask token>

<mask token>
print(output)

array = ['사과', '자두', '초콜릿', '바나나', '체리']
output = [fruit for fruit in array if fruit != '초콜릿']
print(output)

array=["사과","자두","초콜릿","바나나","체리"]
output=[fruit for fruit in array if fruit != "초콜릿"]

print(output)