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.

22nd Aug 2020, 10:12 AM
Light Yagami
Light Yagami - avatar
2 Answers
+ 5
print(21,26,27)
22nd Aug 2020, 10:30 AM
Namit Jain
Namit Jain - avatar
+ 4
Convert both numbers to string Concatenate both strings into one, as this is comparatively easy Convert this concatenated string back to integer
22nd Aug 2020, 10:18 AM
A S Raghuvanshi
A S Raghuvanshi - avatar