I am a beginner in python, and I am learning web automation. Let's say I am using pyautogui as pg
import pyautogui as pg
pg.moveTo(100, 150, 1) # loop should start again from this line 2
pg.click(170, 670, 1)
pg.moveTo(460, 790, 1)
pg.doubleClick(172, 140, 1)
pg.moveTo(450, 100, 1)
pg.click(940, 350, 1)'''
Now I want to repeat this block of code 10 times, how can I achieve that? Without using my interaction with computer? I don't want to copy and paste this code 10 more times. I want this to stop automatically, when it's complete looping 10 times, without taking too much extra lines.