Skip to content

patternify #102

@satyasahoo210

Description

@satyasahoo210

traditional way

'''
Printing the pattern
*
**
***
****
'''
for i in range(1,4+1):
    for j in range(i):
       print('*', end='')
    print()

hack

print('\n'.join(['*' * i for i in range(1, 4+1)])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions