more examples
This commit is contained in:
12
examples/numbers.simple
Normal file
12
examples/numbers.simple
Normal file
@ -0,0 +1,12 @@
|
||||
def function(n):
|
||||
n
|
||||
|
||||
def generate_list(n):
|
||||
list = ""
|
||||
i = 1
|
||||
while i < n:
|
||||
list += function(i) tostr
|
||||
list += " "
|
||||
i++
|
||||
list += function(n) tostr
|
||||
list
|
3
examples/rotations.simple
Normal file
3
examples/rotations.simple
Normal file
@ -0,0 +1,3 @@
|
||||
def rotate(str, n):
|
||||
l = str len
|
||||
str substr(n, l) + str substr(0, n)
|
Reference in New Issue
Block a user