I have a huge string that looks like this:
100hello100string100formatting ...
Furthermore, 100 is a dynamic value. In the original string, there are 60 occurrences of 100. How do I format the string so that I can pass the parameter only once?
I am currently doing the following:
"%dhello%dstring%dformatting%d ..." % (100, 100, 100, ...)
Is there any way to pass the value 100 only once so that it will take the same value for all other parameters?