generate functionMon, 13 Feb 2023

remove elements equal to certain character from python list

def removeEqual(a, b): for i in a: if i == b: a.remove(i) return a

Questions about programming?Chat with your personal AI assistant