Question: Consider the following program, which has one blank left to be filled in (labeled A ): import re pattern = re compile (A) new_string =
Consider the following program, which has one blank left to be filled in (labeled A ): import re pattern = re compile (A) new_string = pattern.sub("1", "helloxworldXgoodbyeXworldx") print (new_string) If you were to fill in _._. whith would be printed by the above program? If you were to instead fill in with , what would be printed by the above program? You can surround your answer in double or single quotes, or leave the quotes off entirely (since they won't actually appear when it's printed); all three versions will be accepted
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
