print(*[1,2,3]) outputs as: 1 2 3
print(*[1,2,3],sep='') outputs as: 123,
which is string type.
Is there any way to print [1,2,3] as integer type 123
print(*[1,2,3]) outputs as: 1 2 3
print(*[1,2,3],sep='') outputs as: 123,
which is string type.
Is there any way to print [1,2,3] as integer type 123
l = [1, 2, 3]
print(int(''.join(str(e) for e in l)))