Computer Science, asked by hemuanshu9854, 9 months ago

Explain zfill (width) with Syntax and Return Value

Answers

Answered by rehmatsara
0

Jitni haseen ye mulakatein hain

Unse bhi pyari teri baatein hain

Baaton mein teri jo kho jaate hain

Aaun na hosh mein main kabhi

Baahon mein hai teri zindagi, haaye

Answered by laraibmukhtar55
0

Explanation of zfill () with Syntax and return value:

• The process zfill( ) pads string is on the left with zeros to fill the width.  

• Syntax of the zfill (): The syntax of zfill () is str.zfill(width)  

• Parameters of the zfill (): This is the ultimate width of the string.  

• That is the width which we would develop after filling zeros.  

• Return Value of zfill (): This mode returns padded string

Hope it helped..

Similar questions