#!/usr/bin/python3

list1 = [ 'abc', 'def', 'ghi' ]

list2 = [ string for string in list1 if string != 'def' ]

print(list2)