Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 12)
12.
How can you check if a specific element is present in a list in Python?
check(element) in my_list
element in my_list
contains(element, my_list)
my_list.contains(element)
Answer: Option
Explanation:
The expression element in my_list is used to check if a specific element is present in a list.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.