In python, %d is similar to %s, but uses numbers instead of strings. This prevents typing str() continuously. The %02d could be useful in creating leading 0s. This could be used in digital clocks that need to always have 4 digits. Example: Output: Example: Output:
