All challenges
Multiple ChoiceBeginner 30s

String zfill

Choose the best answer for: str.zfill()
Options
  1. 1zfill truncates the string
  2. 2zfill(width) pads with leading zeros
  3. 3zfill pads with trailing zeros
  4. 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.

Play this in a 3-minute battle