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

"So why not write reversed_string = orig_string.reverse()"

reverse() does an in-place reversal of the original list and does not return the result.



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

Search: