inp_list=["1","2","3","4","5","a"] print("Original list",inp_list) out_list=(','.join(str(a)for a in inp_list)) print("After removing bracket",out_list)