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

    def reverse(string='abc123'):
        for pos in xrange(-len(string)+1, 1):
            string += string[abs(pos)]

        return string[len(string)/2:]
Fair?


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: