Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Remove Brackets from List Using String Slicing method

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)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Remove #Brackets #List #Using #String #Slicing #method
ADD COMMENT
Topic
Name
2+9 =