Driver Code
List = [ " abab " , " gfg " ] NEW_LINE for s in List : NEW_LINE INDENT cnt = countSub ( s ) NEW_LINE withEmptyString = cnt + 1 NEW_LINE print ( " With ▁ empty ▁ string ▁ count ▁ for " , s , " is " , withEmptyString ) NEW_LINE print ( " Without ▁ empty ▁ string ▁ count ▁ for " , s , " is " , cnt ) NEW_LINE DEDENT