#K58122. Taco Score Finder
Taco Score Finder
Taco Score Finder
You are given a list of team scores and a target score. Your task is to determine whether the target score exists in the list.
Task: Check if the target score is present in a list of scores.
Input Format: The first line contains an integer \(n\) representing the number of team scores. The second line contains \(n\) space-separated integers representing the team scores. The third line contains an integer representing the target score.
Output Format: Output “True” (without quotes) if the target score exists in the list, otherwise output “False”.
For example, if the input is:
6 23 45 67 89 12 34 67
Then the output should be:
True
Solve the problem using efficient linear search.
inputFormat
The first line contains an integer \(n\) (\(n \ge 1\)) denoting the number of team scores.
The second line contains \(n\) space-separated integers representing the team scores.
The third line contains an integer representing the target score.
outputFormat
Output a single line: "True" if the target score is found in the list, otherwise "False".
## sample6
23 45 67 89 12 34
67
True