题解 | #查字典#
查字典
http://www.nowcoder.com/practice/6e2345d9f3d8464a823462542827118c
fruit = ['apple', 'banana', 'strawberry', 'orange', 'mango', 'grape', 'blueberry']
number = [1,3,5,6,13,21,10]
di = dict()
for i in range(len(fruit)):
di[fruit[i]] = number[i]
a = input()
try:
print(di[a])
except:
print(0)