var = float(input("Enter the number: "))
def pattern(var):
if var < 1:
print("")
else:
var = int(var)
for i in range(var+1):
for j in range(i):
print(i,end = '')
print('\n',end='')
pattern(var)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Python