Python twitter Bot. Repeat question

I have a Twitter bot with tweepy. I want When it reaches the last line, Repeat the script from the beginning.from first line and 100 times. Like a repetitive cycle.What command should I add at the end of the bot?

The description is a little vague, but that sounds like you need to reorganize your current code into a function, and call that function in a loop:

def do_things():
    # do the things you want to repeat

for _ in range(100):
    do_things()

this is the script

Search= ‘game of thrones’

nrtweet=1

for tweet in tweepy.Cursor(api.search,Search).items(nrtweet):

try:

   print('tweet retweet')

   tweet.retweet()

   time.sleep(60)

except tweepy.TweepError as e:

  print(e.reason)

except StopIteration:

    break