here is the code:
aList = ['0.01', 'xyz', 'J0.01', 'abc', 'xyz']; aList.remove('0.01'); print("List : ", aList) here is the output: List :
['xyz', 'J0.01', 'abc', 'xyz'] How can I remove the 0.01 attached to 'J0.01'? I would like to keep the J. Thanks for your time! =)
remove. You want a string method instead