Skip to content

Instantly share code, notes, and snippets.

@CodeMaster7000
Created December 24, 2021 12:33
Show Gist options
  • Save CodeMaster7000/3906afb85d8823388e7ef34ff5841e6f to your computer and use it in GitHub Desktop.
Save CodeMaster7000/3906afb85d8823388e7ef34ff5841e6f to your computer and use it in GitHub Desktop.
Floyd's Triangle in Python 3.
row = int(input('Enter number of rows: '))
number = 1
print('\n')
for i in range(1,row+1):
for j in range(1, i+1):
print(number, end='\t')
number += 1
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment