I need to convert and display number in such a way that it has always taken 2 characters.
Let's say we have a variable "n" which takes values from 0 to 99. If you run:
var n=1
print(str(n))
I can get the text to "1" while the need to "01". However, if the variable "n" is >9, the "0" at the front not necessary to add.
How to do it?