Legacy system modernization in Software Engineering - Mini Project: Build & Apply
Create a list called legacy_components with these exact strings: 'Order Processing', 'Inventory Management', 'Customer Database', 'Reporting Module'.
Use square brackets to create a list and include all four component names as strings.
Create a dictionary called priority_levels that assigns these exact priorities: 'Order Processing' to 1, 'Inventory Management' to 2, 'Customer Database' to 3, and 'Reporting Module' to 4.
Use curly braces to create a dictionary with component names as keys and numbers as values.
Create a list called to_modernize that includes components from legacy_components with a priority less than or equal to 2 using a list comprehension with priority_levels.
Use a list comprehension to filter components by checking their priority in the dictionary.
Create a boolean variable called modernization_complete and set it to True to mark the modernization as finished.
Simply assign the value True to the variable modernization_complete.