This is the code I have written
a = "*" * 2
b = "*" * 4
c = "*" * 1
print("a","b","c")
for each in a:
print('{:>5}'.format(each))
for each in b:
print('{:>10}'.format(each))
for each in c:
print('{:>15}'.format(each))
The output I get is something like this
a b c
*
*
*
*
*
*
*
However the output I want to get is something like this
a b c
* * *
* *
*
*
Any idea on how I can get the output I want? Appreciate any help possible