How to remove 0 in the large number begins with zero | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How to remove 0 in the large number begins with zero

002345 out put is like 2345

27th Dec 2018, 1:53 PM
Karthik Devillers
Karthik Devillers - avatar
1 Réponse
+ 1
s=002345 x=str(int(s)) print(x) OR i=0 while(s[i]==0): i+=1 print(s[i:])
27th Dec 2018, 2:00 PM
Pulkit Kamboj
Pulkit Kamboj - avatar