Hi, I seem to be having some trouble converting the output of this(which is a list) to a string of integers. What I want ultimately is for the output to just be integers. After that I also need to determine how many times an integer appears. I know I need to use the count function, but idk how to put it together. Example if the integer "10" appears four times I need an ouput that says it appears four times, and "9" appears 1 time, etc. Thanks!
file = open ('grade.txt', 'r') s=file.readline() grade= while s[0:3]!="EOF": lst=s.split(',') if lst!='I': grade.append(lst) print(lst) s=file.readline() print(grade)