A = 0
B = 0
while True:
try:
print("hello world")
A += 1
if A > 5:
raise ValueError("")
except:
A = 0
try:
print("-----")
B += 1
if B > 5:
raise ValueError("")
except:
break
To embed this project on your website, copy the following code and paste it into your website's HTML: