+ 2

How to delete the last digit in sequence of number?

how to delete last digit in one sequence of number?

11th Sep 2018, 6:40 AM
ஹரி ராமநாதன்
ஹரி ராமநாதன் - avatar
5 Respuestas
+ 9
Just a hint: 1347362247 // 10 == 134736224 ;)
11th Sep 2018, 6:42 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
I don't know if I read your question right but try this: a = [1,2,3] del a[-1]
11th Sep 2018, 2:17 PM
Shuaib Nuruddin
Shuaib Nuruddin - avatar
+ 3
print(int(str(123456789)[0:-1]))
12th Sep 2018, 8:37 AM
Sousou
Sousou - avatar
+ 2
result: 12345678
12th Sep 2018, 8:37 AM
Sousou
Sousou - avatar
0
thanks ji
11th Sep 2018, 7:03 AM
ஹரி ராமநாதன்
ஹரி ராமநாதன் - avatar