I was experimenting with the nested list example in thread:
and was trying to search a nested list like that:
nested_list = [1 ,'Dick', 2, ['Mary', 7, 9, [700, 777, 'Paul']], 13] if 'Paul' in nested_list: print 'found Paul' else: print 'Paul not found'
It always tells me that 'Paul' is not found! How come? Is there an error in Python?