I am trying to have this program open a tab, wait for 15 seconds, then quit Chrome and reopen the tab immediately. Right now, it opens a tab, waits for 15 seconds then closes Chrome and waits for another 15 seconds before reopening it. How would I correct this loop? I'm pretty new to python so any help would be greatly appreciated.
#!/usr/bin/python
import webbrowser
from time import sleep
import os
a=0
while True:
webbrowser.open_new("http://google.com")
sleep(15)
os.system("killall 'Google Chrome'")
a=a+0