How do I complete this?

"

Write a program that checks whether an element occurs in a list. For example: Hint: use a for loop.

array = [4, 6, 7, 8, 10]

Which number would you like to find? 10"

What have you tried so far?

There are various methods that can be used in solving this problem like the loop, in, set
() + in etc 

Since your question focuses on the loop method, you can try this;

array = [4, 6, 7, 8, 10] 

for i in array:

      if ( i = = 10) :

 print(’‘Element exists!’’)

I hope this helps!!