I am trying to write a program that outputs the a list form least to greatest. I wrote it into a file. It keeps giving me the error: ValueError: max() arg is an empty sequence. How can I fix this?
stuff = open("bigsmall.txt", "w")
list = [123,235,53,231,85,795,24,67,8,2]
i = 0
while i <= 11:
x = (max(list))
i += 1
for big in open("bigsmall.txt"):