human
Program to print all substrings of a given string | Function to print all sub strings.
Pick starting point.
Pick ending point.
Print characters from current starting point to current ending point ..
Driver program to test above function"
Solution in Python:
 Can you provide a code to program to print all substrings of a given string and the other steps required?
assistant
#Here is code to program to print all substrings of a given string and the other steps required.
 def subString ( Str , n ) :
	for Len in range ( 1 , n + 1 ) :
		for i in range ( n - Len + 1 ) :
			j = i + Len - 1
			for k in range ( i , j + 1 ) :
				print ( Str [ k ] , end = " " )
			print ( )
Str = " abc "
subString ( Str , len ( Str ) )