human
Count of sub | Function to return the count of possible sub - strings of length n.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to count of sub and the other steps required.
 def countSubStr ( string , n ) :
	length = len ( string ) ;
	return ( length - n + 1 ) ;
if __name__ == " _ _ main _ _ " :
	string = " geeksforgeeks " ;
	n = 5 ;
	print ( countSubStr ( string , n ) ) ;