Using functions, how would I print the lowest, highest, and average of my PAY list that I read from a file?
try: text_file = open ("Pay.txt", "w") text_file.writelines(Pay) text_file.close() except (IOError): print 'Error opening/writing Pay.txt' try: text_file= open("Pay.txt","r") PAY_= text_file.readlines() text_file.close() PAY_.sort() I've never set up anything like this, could anyone get me started?I'll thank you ahead of time for your replies. Keep in mind I'm new here, I don't know exactly how you do things...bear with me please.