xxxxxxxxxx
multiplier= int(input("insert the number you want to multiply by: "))
sequence_length= int(input("insert the length of the sequence: "))
for i in range(sequence_length):
print(i*multiplier, end= ", ")
print("program finished")
xxxxxxxxxx
n=int(input())
x=0
for i in range(1,n+1):
for j in range(i):
print(j+1+x,end=' ')
x=i+x
print()
#output if n = 4:
1
2 3
4 5 6
7 8 9 10