This is my first time asking for help here, but surely not last since I'm just a struggling beginner.
I have a text file with some numbers eg. :
5 26 83 1 5645
7 3758 69 4 84
I want to sort these lines into lists, which I have partially done with this line of code:
result = [line.split(" ") for line in file.readlines()]
- not sure if this is the right way to do it in order to work with it but maybe I'll find some help here
Now, when I have every line of the text file separated as a list of values, I want to find the highest value in the whole text file and find in which line the number is. - I can find the highest value with "max" method but that's about it
For example, out of 20 lines of numbers, the highest value is "94515" and is located in 13th row.
That's what I would like to accomplish.