Unsupported Type

ABC 415

Problem 1 of 50

Easy

What to do

Given a list of integers `arr` and a target integer `x`, check if `x` appears anywhere in `arr`. Return 'Yes' if found, 'No' if not. For example, if arr = [3, 1, 4] and x = 4, return 'Yes' because 4 is in the list.

Key Concepts

if-statements lists (arrays) input/output

Examples

Input: arr = [3, 1, 4, 1, 5], x = 4

Output: Yes

Input: arr = [100, 100, 100, 100], x = 100

Output: Yes

Tips for Beginners

  • Focus on understanding the logic, not memorizing syntax
  • Use print statements to debug your code
  • Don't worry about input parsing - the function handles that for you
  • If stuck, try writing out your solution on paper first

Python Editor

Loading Python...