contains method

contains

Returns true if the list contains the given token, otherwise false.

Returns

A Boolean, which is true if the calling list contains token, otherwise false.

def contains(self, token):
    ...
ParameterTypeDescription
tokenstrThe token to locate in the list.

See Also