I am trying this for
loop that prints some output. I am using python 2.7.5
And after every output, there is an extra space printing when I use the ,
after print()
method. How can I stop this?
def printHeader(self, header1, header2):
# for header1
first = "| | "+constants.ICON_BOX
header1_count = len(header1)
available_space_for_first_part = 53 - (len(first) + header1_count)
print(available_space_for_first_part)
for i in range(available_space_for_first_part):
print("."),
The output for this will look like:
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
There are additional spaces, how can I get rid of them?
Output I want:
..............................