C55 Score 100 Time 11:14
Check if a specific string is included in a specific string.
The target you want to judge in The character you want to check if it is included
Then True or False is returned.
python
loop_count = input()#Check if a specific character is included.
#print(input_line)
target = input()#Check if this string is included
#print(target)
hit_list = []
for i in range(int(loop_count)):
check_str = input()
#print(target in check_str)
if target in check_str:
hit_list.append(check_str)
#print(hit_list)
else:
pass
if not hit_list:
print("None")
else:
for l in hit_list:
print(l)
Recommended Posts