To check if an element is in list,___________operator is used.
Answers
Answered by
0
Answer:
To check if an element is in list, in operator is used.
Example:
list=["Ankit","loves","Jahnavi"]
If 'Jahnavi' in list:
print("Yes, The element exists")
Similar questions
Math,
3 months ago
Computer Science,
3 months ago
Math,
6 months ago
Math,
11 months ago
Biology,
11 months ago