Integer concatenation | Sololearn: Learn to code for FREE!

0

Integer concatenation

Is it impossible to get an output?like: 21 26 27 Exactly in a straight row. strings work but integer blocks me with err.

8/22/2020 10:12:29 AM

Light Yagami

3 Answers

New Answer

+6

could you please post your code? That would help us to answer your question very much.

+5

print(21,26,27)

+4

Convert both numbers to string Concatenate both strings into one, as this is comparatively easy Convert this concatenated string back to integer