Learn practical skills, build real-world projects, and advance your career
Updated 2 years ago
def locate_cards(cards, query):
pass
test = {
'input': {
'cards': [13, 11, 10, 7, 4, 3, 1, 0],
'query': 7
},
'output': 3
}
locate_cards(**test['input']) == test['output']
False
tests = []
tests.append(test)
#query occurs in the middle
tests.append({
'input':{
'cards':[13, 11, 10, 7, 4, 3, 1, 0],
'query':1
},
'output': 6
})