about | help | code help+videos | done | prefs |
Write a Python function findall(text, pattern)that returns a list called resultsof integers of all the starting indices of all non-overlapping occurrences of the string patternin the string text. findall('Now is the time for all good men to come to the aid of their countrymen', 'the') → [7, 44, 55] findall('Te hehehehe ', 'hehe') → [3, 7] findall('Te hehehehe', 'te') → [] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 150
Copyright Nick Parlante 2017 - privacy