Skip to content

Conversation

SunandanChakrabarti
Copy link

No description provided.

Comment on lines +79 to +83
for i in range(1, n+1):
for k in range(1, i+1):
print(k, end = " ")
for l in range(i-1, 0, -1):
print(l , end = ” “)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this more efficient @SunandanChakrabarti ?
This is a very basic way to do it and can be improved if thought more!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants