Explain zfill (width) with Syntax and Return Value
Answers
Answered by
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
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
Biology,
4 months ago
Science,
4 months ago
Computer Science,
9 months ago
English,
9 months ago
Computer Science,
1 year ago