10 XP challenge

Find the First Exact Match

easy
Build it yourself · 6 min
1 Learn2 Predict3 Solve

Task
Your mission

Return the first zero-based index where numbers equals target, or -1 if target is absent. numbers has 0 to 30 integers from -100 to 100; target is in that range.

Examples

InputReturn
numbers = [4,2,4], target = 40
numbers = [1,2,3], target = 21

Your code

Write your answer inside Solution, then use return to send it back.

Try examples runs the public examples. Check my code checks your full answer and saves your completion.