+ 1
According to sololearn , there is 2 more things I'm missing to complete the practice ( #5 & #6) . So what did I miss ?
You are working on data that represents the economic freedom rank by country. Each country name and rank are stored in a dictionary, with the key being the country name. Complete the program to take the country name as input and output its corresponding economic freedom rank. In case the provided country name is not present in the data, output "Not found". data = { 'Singapore': 1, 'Ireland': 6, 'United Kingdom': 7, 'Germany': 27, 'Armenia': 34, 'United States': 17, 'Canada': 9, 'Italy': 74 } a=input() print(data.get(a,'not found'))
1 Respuesta
+ 11
You write not found instead Not found with capital N.