I have a list xline. It is initialized and then appended. But I am getting an error when I run?
xline = []
---#append
----
print (''.join(xline)) # Convert list into string
Run time error
print (''.join(xline)) # Convert list into string
TypeError: sequence item 0: expected string, int found
What is wrong?
pline?expected string, int foundself explanatory.print (''.join(map(str, xline)))repr()function which should give you a string representation for pretty much anything.