Answers for "contains method in list"

1

python list contains string

str in strList

# example
if 'qwe' in strList:
	print('Yes!')
Posted by: Guest on August-19-2021
0

list contains

List<Integer> arr = new ArrayList<Integer>(4);
boolean ans = arr.contains(2);
Posted by: Guest on July-25-2020

Python Answers by Framework

Browse Popular Code Answers by Language