Question: I have a text file with 195 lines. I need to open the file and read certain lines (e.g. lines 5-30) several times throughout a

I have a text file with 195 lines. I need to open the file and read certain lines (e.g. lines 5-30) several times throughout a if/else function. How can I do this?

I'm using Python.

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!