L
try:
html = urlopen(i).read().decode("utf-8")
s = str(html).split()
ul_open = []
ul_end = []
for x in s:
if x == '<ul>':
ul_open.append(x)
if x == '</ul>':
ul_end.append(x)
print(i if len(ul_open) != len(ul_end) else None)
except Exception:
continue
finally:
print('Goodbye, world!')