# This function doesn't work because strings are immutable! def remove_i_broken(s): '''Remove all instances of the letter i from the string s.''' while s.count("i") > 0: # while there are more i's to remove position = s.find("i") # find the next i s = s[0:position] + s[position + 1:] if __name__ == "__main__": text = "Will this work?" print text remove_i_broken(text) print text,"should be","Wll ths work?"