Questions 36-39 Given the following program: group_words.py…

Questions 36-39 Given the following program: group_words.py import sys def make_groups(text): … def main(text): groups = make_groups(text) print(groups) if __name__ == ‘__main__’: main(sys.argv) Which implementations of make_groups can produce the following output? python group_words.py ‘I, Nephi, having been born of goodly parents…’ {1: , 5: , 6: , 4: , 2: , 7: }

Questions 24-30 Consider the following program: subs.py impo…

Questions 24-30 Consider the following program: subs.py import sys def substitute(text, substitutions): … def main(text, substitutions): text = substitute(text, substitutions) print(text) if __name__ == ‘__main__’: options = { “bird”: “feathered critter”, “fish”: “wet critter”, “dog”: “happy critter”, “cat”: “furry critter” } main(sys.argv, options) Which of the following implementations of substitute can produce this execution: python subs.py “My dog likes to watch the fish swim. My cat wants to catch the bird in the tree.” My happy critter likes to watch the wet critter swim. My furry critter wants to catch the feathered critter in the tree.