d={"USA":36,"Germany":17,"France":32,"Australia":77,"South Africa":99,"India":108,"South Korea":200}
def search_dict(word):
try:
c=dict((new_k.lower(),new_val) for new_k,new_val in d.items())
return c[word]
except:
return "헤당국가 없습니다."
name=input("나라이름을 입력하세요:").lower()
print(search_dict(name))
#2
name2=input("나라이름을 입력하세요:").lower()
def search_dict1(word):
c=dict((new_k.lower(),new_val) for new_k,new_val in d.items())
return c.get(word,"해당없습니다.")
print(search_dict1(name2))