Unsupported Type
ABC 415Problem 1 of 50
EasyWhat to do
You have a list of numbers and a single number. You need to check if the single number is in the list. If it is, you say 'Yes', and if it isn't, you say 'No'.
Key Concepts
if-statements
lists (arrays)
input/output
Examples
Input:
[3, 1, 4, 1, 5], 4
Output:
Yes
Input:
[100, 100, 100, 100], 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...