python 删除列表空元素或相同元素

a=[‘a’,’b’,’c’,’a’,’d’,’a’]

如何把所有的’a’删除呢?

我的笨方法: for i in a: if i == ‘a': a[a.index(i)] = ”

while ” in a: a.remove(”)