Categories
How to add 0 in front of a number in python?
I have the number 10 in the change, the output should be 0.10, is it possible to do this? And How?
Answer the question
In order to leave comments, you need to log in
Easy:
a = 10 print(f'0,{a}') # 0,10
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question