python - Check if item is in an array -


if i've got array of strings, can check see if string in array without doing for loop? specifically, i'm looking way within if statement, this:

if [check item in array]: 

assuming mean "list" "array", can do

if item in my_list:     # whatever 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -