I have 0 experience in coding but I put my ambition and code something in python for a game. Everything works perfect :D But I have a problem. I don't know how to infinite repeat the code. I've look over the internet but i didn't understand much. Im gonna let here a part of the code maybe someone can explain me how to put all code into 'repeat'.
import time
import pyautogui
pyautogui.click(942, 642)
time.sleep(1)
pyautogui.click(807, 581)
time.sleep(1)
Thanks.