#python program to create a list by concatenating a given list which range goes from 1 to n
import sys 
my_list = ['p', 'q']
n = 4
new_list = ['{}{}'.format(x,y) for y in range(1, n+1) for x in my_list]
print(new_list)
