(Project: Metric Conversions) Write a script that assists the user with some common metric-to-English conversions. Your script should allow the user to specify the names of the units as strings (i.e., centimeters, liters, grams, and so on for the metric system and inches, quarts, pounds, and so on for the English system) and should respond to simple questions, such as Your script should recognize invalid conversions. For example, the following question is not meaningful, because 'feet' is a unit of length and 'kilograms' is a unit of mass: Assume that all questions are in the form shown above. Use regular expressions to capture the important substrings, such as 'inches', '2' and 'meters' in the first sample question above. Recall that functions int and float can convert strings to numbers.
#Sales Offer!| Get upto 25% Off: