According to sololearn , there is 2 more things I'm missing to complete the practice ( #5 & #6) . So what did I miss ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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'))

4th Jan 2023, 7:13 AM
marill con
1 Answer
+ 11
You write not found instead Not found with capital N.
4th Jan 2023, 7:46 AM
JaScript
JaScript - avatar