If you had the id's in a list:
ex: id_list = [id, id, id, id, id]
# imagine those are id numbers :)
then you could do something like:
for id in id_list:
print get_retweet_count(id)
for info on for loops and python loops in general, click here and here(codeacademy, python tutorials) and google ;)