in python how do I convert a single digit number into a double digits string?
in python how do I convert a single digit number into a double digits string? Question: So say i have a = 5 i want to print it as a string ’05’ Asked By: Joe Schmoe || Source Answers: In python 3.6, the fstring or "formatted string literal" mechanism was introduced. f"{a:02}" is the equivalent …
Total answers: 11