An international shipping company uses two-letter ISO country codes (e.g. "CA", "FR", "JP") to calculate shipping regions and delivery times. There are 249 valid country codes.
A program is required to verify if a user-entered shipping country code is valid and lookup its delivery time.
Each valid country code with its delivery time (in days) is stored as a record in a two-dimensional list, shippingTable. The records are stored sorted in alphabetical order by their country code.
Open file shipping_search.py
Write a program to meet these requirements:
shippingTable.
shippingTable of any length.Use comments, white space and layout to make the program easier to read and understand.
Do not add any additional functionality.
Save your amended code as shipping_search_finished.py
159 exam-style questions on Edexcel GCSE Computer Science Algorithms, covering Constructs for solving problems, Variables, constants and data structures, Arithmetic, relational and logical operators, Tracing algorithm output with trace tables, Types of error and correcting logic errors, Standard algorithms (sorts and searches), and Evaluating algorithm fitness and efficiency. Each one has a worked solution and a mark scheme showing where the marks go.