Python String | zfill()
zfill() method returns a copy of the string with ‘0’ characters padded to the leftside of the given string.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
length : length is the length of the returned string from zfill() with ‘0’ digits filled to the leftside.
Returns a copy of the string with '0' characters padded to the leftside of the given string.
0000000000geeks for geeks 00000geeks for geeks geeks for geeks
00006041 +0006041 -0-anything%(&%(%)*^