Python: combine two neighbor list components

Posted by kame on Stack Overflow See other posts from Stack Overflow or by kame
Published on 2010-05-08T11:11:50Z Indexed on 2010/05/08 11:18 UTC
Read the original article Hit count: 196

Filed under:
|
|
|

When i use this code I get elements wich containing one number or letter. How to combine two neighbors?

data = '4D41544C414220352E30204D41542D66696C652C20506C6174666F726D3A20504357494E2C2043726561746564206F6E3A20576564204D61792030352031363A31393A3337203230313020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020200001494D0F00000026000000789CE36360607000623620E680D220C00AE53343312310BA00692620E604F351010025BE00C8'
data2 = list(data)
print data2

© Stack Overflow or respective owner

Related posts about python

Related posts about beginner