Python in_array()

Python uses the “in” statement as the equivalent to PHP’s in_array()

my_boolean = my_value in my_list

You can view more PHP-Python statements here.

Leave a Reply