2020-12-28 13:01:28 +03:00
|
|
|
let l = list()
|
2020-12-28 07:35:02 +03:00
|
|
|
|
|
|
|
l.append(1)
|
|
|
|
l.append(2)
|
|
|
|
l.append("string")
|
|
|
|
l.append(3.14159)
|
|
|
|
|
2020-12-28 07:51:14 +03:00
|
|
|
def foo():
|
2021-01-04 17:33:43 +03:00
|
|
|
print("bar")
|
2020-12-28 07:51:14 +03:00
|
|
|
|
|
|
|
l.append(foo)
|
|
|
|
l.append("world")
|
|
|
|
|
2020-12-28 07:35:02 +03:00
|
|
|
for v in l:
|
2021-01-04 17:33:43 +03:00
|
|
|
print(v)
|
2020-12-28 07:35:02 +03:00
|
|
|
|
|
|
|
return 0
|