- #1
vorcil
- 398
- 0
Homework Statement
I need to know how to change the format of a number in python
for example if I have a integer variable, xstart=0.
If i were to print(xstart) I want it to show 00000
and if I were to add 120 to xstart
xstart+=120
then print it
print(xstart) I want it to show 00120
Thanks.