I have data like this stored in a text file:
ABC,0x1: XYZ,0x2:
I want to parse this data into 2 dimensional array, currently i can parse data separated by ':' using following code,
text_file = open("string.txt", "r")
parsed_data = text_file.read().split(':')
My question is that how can i store this data into 2-D list such that parsed_data[0][0] will contain ABC, parsed_data[0][1] contain 0x1 and so on.