human
Concatenate suffixes of a String | Function to print the expansion of the string.
Take sub - string from i to n - 1.
Print the sub - string.
Driver code"
Solution in Python:
assistant
#Here is code to concatenate suffixes of a String and the other steps required.
 def printExpansion ( str ) :
	for i in range ( len ( str ) - 1 , - 1 , - 1 ) :
		for j in range ( i , len ( str ) ) :
			print ( str [ j ] , end = " " )
str = " geeks "
printExpansion ( str )