Mega Code Archive

 
Categories / Python / Buildin Function
 

Convert string to a list and add them together

print [1, 2] + list("34")     # same as [1, 2] + ["3", "4"]