fork download
  1. with open('page.txt','r') as f:
  2. s=f.read()
  3. pat="""
  4. India
  5. </td>"""
  6. l=s.split(pat)
  7. tot=0
  8. for x in l:
  9. if x.find("""ACCEPTED""")!=-1:
  10. tot+=1
  11. print tot
  12. exit(0)
Runtime error #stdin #stdout #stderr 0.01s 7848KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 1, in <module>
IOError: [Errno 2] No such file or directory: 'page.txt'