The program is an illustration of lists
Lists are variables that are used to hold multiple values
The program written in Python, where comments are used to explain each line is as follows:
#This gets the integer
n = int(input())
#This gets the character
char = input()[0]
#This creates an empty list
MyList = []
#This following loop gets input for the list
for i in range(n):
MyList.append(input())
#This iterates through the list
for items in MyList:
#This checks if the character is in a list element
if char in items:
#If yes, the element is printed
print(items,end =", ")
Read more about lists at:
https://brainly.com/question/24833629