inp_list =['1','2','3','4','5','a'] out_list = str(inp_list)[1:-1] print("Original list:",inp_list) print("After removing brackets:",out_list)