1. Engineering
  2. Computer Science
  3. need help figuring out how to correctly read this file...

Question: need help figuring out how to correctly read this file...

Question details

Need help figuring out how to correctly read this file in Python.

Let's say I have a list of numbers in a text file

3 <- Set

1 3

4 5

6 8

4 <- Set

5 8

9 9

10 3

3 4

Can someone help me via Python code on how to extract the set number, cycle through it's respective data, extract the next set number and cycle through it's data?

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution