Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

every substring python

def every_substring(string):
	return [string[i: j] for i in range(len(string)) 
            for j in range(i + 1, len(string) + 1)]
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #substring #python
ADD COMMENT
Topic
Name
3+2 =