human
Program to print all substrings of a given string | * Function to print all ( n * ( n + 1 ) ) / 2 * substrings of a given string s of length n ..
Fix start index in outer loop . Reveal new character in inner loop till end of string . Prtill - now - formed string ..
Driver program to test above function"
How can the above be solved in Python?
assistant
#Here is code to program to print all substrings of a given string and the other steps required.
 def printAllSubstrings ( s , n ) :
	for i in range ( n ) :
		temp = " "
		for j in range ( i , n ) :
			temp += s [ j ]
			print ( temp )
s = " Geeky "
printAllSubstrings ( s , len ( s ) )