I tried to find the available methods but couldn\'t find it. There is no contains. Should I use index? I just want to know if the item exists, don\
contains
index
Be careful with that: return Oops. use Set: d= {...}
def simha(): d = ('this_is_valid') b = 'valid' if b in d: print("Oops!!!!!") simha()