I'm trying to find max and min values from a text file which contains data in rows and columns. But I want to create a script which will skip the first couple of lines and calculate the max and min from there on. I am aware for the max and min functions in Python, but I'm not sure how to specify the range. I know I can do something like the following:
f = open('data.txt', 'r') # Open file
data = f.readlines() # Read lines in the file
for range(2,...): # Define the range. Is there a way to not close the range?
# I mean, I don't want to specify an end for the range.
max(data)
min(data)
print max(data), min(data)
Apologies for any mistakes as I am new to Python.