Question: Im working with Python in Jupyter Notebook and Im trying to write a function that can open the files Ex_grid.txt or Ey_grid.txt then load the
Task 1b Grid Function otebooks/Grid Function ipynb Grid Function Last Checkpoint: an hour ago (autosaved) View Insert Cell Kemel Widgets Help def my function to read E grid file(file to read): "function to read data from Ex grid.txt file format file_to_ read name of the file to read" #file-name-file-to-readA f-open( Ex-grld.txt.,'r') #opens the text file f.readline() #skips the header of the file data.f.readlines() #reads the data in the text file f.close() #closes the file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
