Как префикс номера с нулем в Python
print(f"{n:02}")
#wherein, if n is a single digit, it will be prefixed with one 0
Inquisitive Ibex
print(f"{n:02}")
#wherein, if n is a single digit, it will be prefixed with one 0