How to convert int list to int number in Python

1 Answer

0 votes
lst = [4, 6, 3, 9, 1, 2]

lst = [str(lst) for lst in lst]

s = "". join(lst)

num = int(s)
    
print(num)
print(type(num).__name__)




'''
run:

463912
int

'''

 



answered Sep 22, 2022 by avibootz

Related questions

1 answer 223 views
1 answer 215 views
1 answer 290 views
1 answer 261 views
2 answers 362 views
...