SHARE
TWEET

Testing CSC108 Trevor

a guest Nov 19th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. >>> from testingpython import indices
  2. >>> indices('The', 'p')
  3. []
  4. >>> indices('A coooool pool look', 'oo')
  5. [3, 6, 12, 17]
  6. >>> indices('a', 'and')
  7. []
  8. >>> indices(' ', ' ')
  9. [0]
  10. >>> indices(' the dog  is   pretty    cool', '  ')
  11. [8, 12, 21, 23]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top