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

Step 1: https://www.google.com/search?q=list+python+string+methods

Step 2: Parse the output with your eyes. The method is literally called "find".

This one-trick pony failure mode could perhaps have been fine for a guy who did Java and nothing but Java for 10 years, but you are supposedly the person who runs "pythonforengineers" website...

100% correct call by the interviewer.



So I don't code python. Is it find() or index() or is being terse and rude not really going to add inches to your dick?


You're thinking of a perfect world. We're not in it.

In this one there are often thousands of applicants for a position, most of which can't pass FizzBuzz.

Why would they (or anyone for that matter) choose a candidate who can't figure out how to find info about a trivial method?


Why would you be interviewing for a Python developer position if you don't know Python?


What about 'in'? index()? There are at least 3 canonical methods for basic string searches, and 8 if your include the more specialized forms (all of which are considered solutions).

Please refrain from personal attacks here. Save that for less reputable forums.




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: