I have a string '6273db00', and hexadecimal numbers in range '00000 - f423f'. I'm trying to append each value from that range to the end of the string and print the result to a text file.
So it would look like this:
6273db0000000
6273db0000001
...
6273db00f423f
My code at the moment prints numbers starting with 1 digit:
6273db000
6273db001
6273db002
file = open("output.txt", "w")
string = "6273db00"
for i in range(0,1000000):
result = string + format(i, 'x')
file.write((result) + '\n')
file.close()
What should I change to make it print 5 digit hex numbers?