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

    lst = [range(0, 10, 2)]


That's wrong in multiple ways. You want

    lst = list(range(0, 20, 2))


Ohh, yeah, you're right.


Even simpler!




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

Search: