''' Purpose: consider string casing functions ''' text = input( "Enter text: " ) substring = input( "Enter substring: " ) i = input( "Enter index: " ) i = int( i ) print() # count occurrences of text total = text.count( substring ) # Use this on hw # string.count( thingtocount ) will count the number of # times the things in parentheses are in the string you call the functionon! from_index_i_on = text.count( substring, i ) print( "text.count( substring ) =", total, " # count all" ) print( "text.count( substring,", i, ") =", from_index_i_on, " # count starting from index", i )