This code extracts marks of all students in class and stores the result in a file results.txt, using BeautifulSoup. I'm looking for code review and suggestions.from bs4 import BeautifulSoupimport requestsfile = open(results.txt,w)for roll in range(1,60):    if roll in range(1,10):            rollstr = '0'+str(roll)    else:            rollstr = str(roll)    url = 'http://www.juexam.org/newexam/show_result.asp?f1=cse1530'+rollstr+'&f2=E3CSE1521R'    r = requests.get(url)    data = r.text    soup = BeautifulSoup(data)    file.write('roll: ' +rollstr + ' ')    for i in soup.find_all('strong'):            sgpa = i.get_text()            if sgpa.find('SGPA') == 0:                    file.write(sgpa)                    break    file.write('\n')
Extracts marks of all students in class from website
python;web scraping;beautifulsoup