Code: Select all
my_lst = ["apple", "orange", "banana"]Code: Select all
my_var = "apple"Code: Select all
my_var == any(my_lst)Code: Select all
FalseCode: Select all
my_lst = ["apple", "orange", "banana"]Code: Select all
my_var = "apple"Code: Select all
my_var == any(my_lst)Code: Select all
False