Open satyasahoo210 opened 5 years ago
''' Printing the pattern * ** *** **** '''
for i in range(1,4+1): for j in range(i): print('*', end='') print()
print('\n'.join(['*' * i for i in range(1, 4+1)])
traditional way
hack
print('\n'.join(['*' * i for i in range(1, 4+1)])