add zero in front of numbers lower than 10 python code example Example: add zero in front of numbers lower than 10 python print(f"{x:02}") # where x is the integer