I want print my output to text file. Jow can I fix my code?
for h3 in parse.find_all('h3', {'class': "_1hETr2dodrTLejwpCPNjNp"}):
     account = '{}:{}:{}'.format(ab_form, ft_form, h3.get_text())
     print(account)
     output = open("./output.txt", "r")
     output.write(account)
 
     
     
     
    