Yes, Python has a string method called str.__contains__() that allows you to check if a string contains another string.
To check if a Java List contains an object with a specific field value, you can use the List.stream().anyMatch() method along with a lambda expression to filter the elements in the list based on the field value.