Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
from itertools import islice, count first_ten = list(islice(count(1), 10)) print(first_ten) # [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Result
Open