How to create a list in Teddy?

The amount of items is determined by a variable.
I want to creat n items (say n number 1) in a list

LET#n 3
#n is the amount of the items
list =1,1,1

LET#n 5
list =1,1,1,1,1

How to do it in Teddy?

Del#list $ in case you have used it before
Let#n 5
Loop#1 #n
Let#list(#1) 1
EndLoop

1 Like