Multiple ChoiceBeginner 30s
String zfill
Choose the best answer for: str.zfill()
Options
- 1zfill truncates the string
- 2zfill(width) pads with leading zeros
- 3zfill pads with trailing zeros
- 4zfill only works on numbers
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.