How can I display a number with leading zeros in Python?

I’m trying to display a number with leading zeros in Python, but I’m not sure how to do it. For example, I want to display the number 5 as “005” and the number 25 as “025”. Can someone please provide me with a code example on how to do this?

Here’s an example code snippet of what I have tried so far:

However, this only works for single-digit numbers. I’m not sure how to make it work for numbers with more than one digit. Can someone please help me with this and suggest a better solution? Thanks!