Question: YOU MUST SOLVE THIS QUESTION WITHOUT LOOPS; OTHERWISE YOU WILL NOT GET ANY CREDITS FROM THIS QUESTION. According to the data obtained from the World

 YOU MUST SOLVE THIS QUESTION WITHOUT LOOPS; OTHERWISE YOU WILL NOT
GET ANY CREDITS FROM THIS QUESTION. According to the data obtained from

YOU MUST SOLVE THIS QUESTION WITHOUT LOOPS; OTHERWISE YOU WILL NOT GET ANY CREDITS FROM THIS QUESTION. According to the data obtained from the World Health Organization's "Global Status Report on Alcohol and Health 2014" report, 61% of the 190 countries have a minimum legal drinking age (MLDA) of 18 or 19 years old. In this report, MLDA of a country can be one of the following options: An integer like 16, 17, 18, 19, etc, "NONE" for the countries which do not have a minimum legal age "ILLEGAL" for the countries which prohibit everyone at any age You need to write a Python program that takes two inputs: . a string input in the following format "countryl:MEDA1; country2 :MLDA2; country3: MLDA3; . As you can see, there is a colon between each country and its MLDA; and a semicolon ";" between each country-MLDA pair. You may assume that the user will enter this input in the given predefined format and thus do not need to perform any kind of input checks. a country name Your task is to find the MLDA for this given country (second input), if such a country exists in the data given in first input. An the inputs entered by the user should be case insensitive (check the Sample Runs). You may assume that there will be at least one country-MLDA pair in the input; however the number of such pairs can be anything. You may also assume that a country name appears exactly once in the first Input Sample Runt: Encar data: Turkey:18; Belgium: 16:United States:21 anything. You may also assume that a country name appears exactly once in the first input. Sample Run 1: Enter data: Turkey:18:BelGIUM: 16; United States: 21 Enter country: BELgium 16 Sample Run 2: Enter data: ChinA: NONE; BelgiUM: 16; United States:21 Enter country: NONE There is no such country! Sample Run 3: Enter data: ChinA: NONE: United States:21 Enter country: china none Sample Run4: Enter data: ChinA: NONE; BelgiUM: 16; Japan: 20;Afghanistan: ILLEGAL Enter country: Afghanistan illegal Sample Runs: Enter data: China:NONE; BelGIUM:16; Japan: 20:Afghanistan: ILLEGAL Enter country: Bel There is no such country

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!