0

How can I represent a bigger number into a smaller two digit in python?

I am trying to solve a python problem where I have to print the remaining account balance as a two-digit number, how could I do so?

31st Aug 2022, 5:03 PM
ss7
2 Respostas
0
Do you mean two digit decimal? What do you mean by two-digit number? Give us an example.
31st Aug 2022, 5:53 PM
Mustafa A
Mustafa A - avatar
0
Saurabh Singh Convert it to a higher base. See, the three-digit number 127 in decimal is a two-digit number FF in hexadecimal.
31st Aug 2022, 6:56 PM
Brian
Brian - avatar