题解 | #查字典#
查字典
http://www.nowcoder.com/practice/6e2345d9f3d8464a823462542827118c
fruit = ['apple','banana','strawberry','orange','mango','grape','blueberry']
number = [1,3,5,6,13,21,10]
#1111111
# fruit_dict = {}
# for i in range(len(number)):
# fruit_dict[fruit[i]]=number[i]
# x = input()
# if x in fruit:
# print(fruit_dict[x])
# else:
# print('0')
#22222222
fruit_dict = dict(zip(fruit,number))
x = input()
if x in fruit:
print(fruit_dict[x])
else:
print('0')
number = [1,3,5,6,13,21,10]
#1111111
# fruit_dict = {}
# for i in range(len(number)):
# fruit_dict[fruit[i]]=number[i]
# x = input()
# if x in fruit:
# print(fruit_dict[x])
# else:
# print('0')
#22222222
fruit_dict = dict(zip(fruit,number))
x = input()
if x in fruit:
print(fruit_dict[x])
else:
print('0')