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

Huh?

    >> a.index("P")
    => 14
    >> b.index("P")
    => 15
    >> c.index("P")
    => 218
    >> d.index("P")
    => 40


Sry, bug in my code, I only tested the first 2 strings.




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

Search: