My Code for the Lesson 1 Problem

I would like to know whether my code (below) can be a Binary Search Algorithm? Please help me guys.

def locate_card(cards, query):
if len(cards) != 0 :
for i in range(len(cards)) :
if query in cards :
if i == len(cards):
return -1
elif cards[i] == query:
return i
else :
return -1
else :
return -1

Well! I realized that my code is a linear search algorithm.