0
I have a list with of digits in this order : units, tents, cents, etc. I want to return the number forme by its digits.
Ex: the digits are write from keyboard l=[4, 3,8,9,2]------>nr=29834
5 Respostas
+ 5
lst1 = [2, 4, 0, 2, 5, 4]
lst2 = []
[lst2.insert(0,i) for i in lst1]
print(lst2)
+ 2
I don't understand how you got that output. Also, don't forget go include the programming language you're using in the tags
0
I didnt write well 'tents' perhaps is 'tens'. But I hope the example is better.
0
Thanks. I made it.