Question: A python program that can replace multiple numbers in a file. Input file: next 9021435 #### 1435 Water test1 next 80269263 #### Heat st2 air

A python program that can replace multiple numbers in a file.

Input file: <>next 9021435 #### 1435 Water test1 <>next 80269263 #### Heat st2 air <>next 1002301406 ####

50236591 60241943 Heat food PC air <>next 1002301406 #### 502438102 5038120 5025910 5025910

The txt below will be used to replace the number between '<>next' and '####' with the corresponding line. 9021435 152456-5-163 80269263 3956-5-173 1002301406 3456-5-183 1002301406 12564-5-12

The output will look like this: <>next 152456-5-163 #### 1435 Water test1 <>next 3956-5-173 #### Heat st2 air <>next 3456-5-183 ####

50236591 60241943 Heat food PC air <>next 12564-5-12 #### 502438102 5038120 5025910 5025910

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!