8 ms·
Step 1: https://www.google.com/search?q=list+python+string+methods https://www.google.com/search?q=list+python+string+methods Step 2: Parse the output with you
by gspetr 4mo ago
Step 1: https://www.google.com/search?q=list+python+string+methods 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.
- butlike 4mo agoSo 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?
- gspetr 4mo agoYou'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?
- eudamoniac 4mo agoWhy would you be interviewing for a Python developer position if you don't know Python?
- NBJack 4mo agoWhat 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.