Hapus tanda kurung dari daftar menggunakan metode translate
inp_list = ["1","2","3","4","5","a"]
target = {39:None, 91:None , 93:None}
ans=(str(inp_list).translate(target))
print("Original list:",inp_list)
print("After removing brackets:",ans)
Outrageous Ostrich