Hint I
If we print or otherwise check the value returned by find
, we can see that although it runs find the first loop, the second
it returns -1
; this then does very strange things to our string slices, and ensures we don't get the result we're after.
Can you find anything else in the documentation for string functions that might help us write better code? Can you fix it?