Testing
Testing
a. 0
b. 1
c. the number itself
d. compile time error
e. runtime error
Testing code with all the possible input values is
called:
new_list = mystery(name_list,
"Stark")
print(new_list)
def search(word):
the_list = [ 'i', 'love', 'computer', 'science' ]
position = 1
while the_list[position]!=word and position<len(the_list):
position = position + 1
print (position)