def print_numbers2():
for a in range(1,6):
c = 5-a
print("." * c , str(a) *a)
My output is
.... 1
... 22
.. 333
. 4444
55555
But output I was expecting to get was without space between dot(.) and number. There is space between dots and numbers.
How can i fix this problem?