2009-12-29 08:52:26 -05:00
|
|
|
nums: i * 3 for i in [1..3]
|
2009-12-26 03:16:40 -05:00
|
|
|
|
2009-12-29 08:52:26 -05:00
|
|
|
negs: x for x in [-20..-10]
|
2009-12-26 23:35:43 -05:00
|
|
|
negs: negs[0..2]
|
2009-12-26 03:16:40 -05:00
|
|
|
|
2009-12-26 23:35:43 -05:00
|
|
|
result: nums.concat(negs).join(', ')
|
|
|
|
|
|
|
|
print(result is '3, 6, 9, -20, -19, -18')
|