|
Adding and removing digits from the right would take just as much multiplication/division with strings as from the left.
Adding digit:
self.txt = int(str(self.txt) + str(random.randrange(0,10)))
Removing digit:
self.txt = int(str(self.txt)[0:len(self.txt)-2])
And why should it matter anyways, if the program really has no point, and digits are generally added and removed from the left. o_O??
|