19 lines
309 B
Python
19 lines
309 B
Python
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)
|
|
|
|
def tupleOf(*args):
|
|
return tuple(args)
|
|
|
|
let l = list(map(tupleOf,['foo','bar'],['baz','bix'],['three','args'],['four','args']))
|
|
print(l)
|