Questions 24-30 Consider the following program: subs.py imp…
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[1], 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.
Read Details