Perl Primer - University of California, Davis

res = sub_string.replace (‘t’, ‘T’) print res. Practice: Write a python function: findAllSub (string, sub_string) that finds and prints all occurrences of sub_string in string. Function prints the indices of the beginning of sub_string in string. ................
................