Skip to content

Instantly share code, notes, and snippets.

@bharathmuddada
Last active May 26, 2021 07:30
Show Gist options
  • Select an option

  • Save bharathmuddada/6b0705b6ef0afef04a08d73771134620 to your computer and use it in GitHub Desktop.

Select an option

Save bharathmuddada/6b0705b6ef0afef04a08d73771134620 to your computer and use it in GitHub Desktop.
Inverted Triangle Pattern in Python
n = int(input("Enter your number \n"))
for i in range(n):
for j in range(n-i):
print('*', end="")
print()
'''
Output:
*****
****
***
**
*
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment