Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Unless its Python 3.x.

Though, really, even there, while the list comprehension works, its kind of an awkward construction to use that instead of:

  numbers = list(range(10))


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: