Question: manipulating data with python below i have a function which im using to read 2 textfiles, on the textfiles the first liine just says first
manipulating data with python

below i have a function which im using to read 2 textfiles, on the textfiles the first liine just says first line. cvery other line has 10 numbers with twenty digits. i want to take line 3 from ccc.txtsquare each element and make a new list or string, we'll call line3_squared then plot line3_squared against drest View Insert Cell Kee Widgets Help ddd - Note pad File Edit Format View Help first line h 7.919055995608423242Se-88 4.0014656026579413249e-08 7.9587577896 4.756519091344175311Se-08 5.1557086343029653458e-08 6.3693801211 5.6105657006093290136e-88 2.5869788723656166592e-08 3.2336158408 2.5869788723656166592e-08 3.2336159488719792489e-08 1.3711755095 drest : def mi (P): f-open (P, ' first f.readline() rest- f.readlines() return first, rest f.close ccc-Notepad File Edit Format View Help first line 3.1948343452787551598e-08 8.2713170798435268456e-08 9.29974074660 0.8466139114156927980e-08 8.6552265489125695952e-08 1.64103912880 2.2924892903408382299e-08 8.0910483085272639979e-08 0.11509099673 4.7565190913441753115e-08 5.1557086343029653458e-08 6.36938012116 afirst , crest bfirst,drest - mi( ddd.txt) print(crest) print (drest) : =mi(.ccc.txt.) crest 3.1948343452787551598e-08 8.2713170790435268456e-08 9.299740746607 e-08 6.4869237006439418830e-08 5.6105657006893290136e-08 2.58697887 690e-981n., ..8466139114156927988e-98 8.6552265489125695952e-98 1.f 28256712144e-08 4.8228459783414887112e-08 1.6503915571969716123e-08
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
