2021-03-21 10:47:13 +03:00
|
|
|
let l = list()
|
|
|
|
|
|
|
|
l.extend(range(10))
|
|
|
|
|
|
|
|
let l = list(range(10))
|
|
|
|
print(l)
|
|
|
|
|
|
|
|
let l = list(map(str,'test'))
|
|
|
|
print(l)
|
|
|
|
|
|
|
|
let l = list(map(list,['test','test','test']))
|
|
|
|
print(l)
|
|
|
|
|
2022-07-05 05:43:11 +03:00
|
|
|
def tupleOf(*args):
|
|
|
|
return tuple(args)
|
|
|
|
|
2021-03-21 10:47:13 +03:00
|
|
|
let l = list(map(tupleOf,['foo','bar'],['baz','bix'],['three','args'],['four','args']))
|
|
|
|
print(l)
|