Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> from testingpython import indices
- >>> indices('The', 'p')
- []
- >>> indices('A coooool pool look', 'oo')
- [3, 6, 12, 17]
- >>> indices('a', 'and')
- []
- >>> indices(' ', ' ')
- [0]
- >>> indices(' the dog is pretty cool', ' ')
- [8, 12, 21, 23]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement