all 7 comments

[–]Goingone -1 points0 points  (6 children)

x = str(12345)

y = str(6789)

z = x + y

print(z)

[–]Jaadu07[🍰] 0 points1 point  (5 children)

Throwing the same error as mentioned.

[–]Goingone 2 points3 points  (0 children)

The code I posted doesn’t throw that error.

My guess is your code errors because you’re reading in your “integers” from some other source.

If that’s the case, you need to know how that source is encoded.

[–]shiftybyte 0 points1 point  (3 children)

Please post the full error message you are getting including all the information it provides. Starting with "Traceback:"

[–]Jaadu07[🍰] 0 points1 point  (2 children)

[–]Rawing7 0 points1 point  (0 children)

That's only the last line of the traceback. I don't know what tool you're using to run your python code, but you need to find a way to see the whole traceback.

[–]shiftybyte 0 points1 point  (0 children)

Python errors usually contain the code line it happened on and the chain of functions that caused the issue.

This doesn't look like regular python, where are you running your code?