I have a list of integers:
lists = [8,7,2]
I want it to be:
result = 872
I can do it in the following way:
result = 0
for count, i in enumerate(reversed(lists)):
result += i*(10**count)
It works. but I think there should be another better and faster way. Thanks in advance