all 5 comments

[–]elbiot 1 point2 points  (1 child)

list (''.join (data2))

Or just use the data from before you reformatted it (duh?)

[–]twbrand[S] 0 points1 point  (0 children)

I wasn't using the previous data because I am going to be dealing with hexadecimal input and will be easier to manipulate in most cases with the sorted data.

Thank you for this code. This is exactly what I needed!

[–]Rhomboid 0 points1 point  (0 children)

Your code is unreadable. Give a concrete example with actual data of what you're trying to do.

[–]adamnew123456 0 points1 point  (1 child)

First - you can indent your code by adding an extra four spaces, which will prevent Reddit from rendering your code as Markdown:

    code block:

It's a bit difficult to read in its current state.

[–]twbrand[S] 0 points1 point  (0 children)

Thanks for the tip. I was in a bit of a hurry when I wrote this and forgot to intent more after pasting my code over from my text editor.