July 2022 Computing programming course by Teesside University
[ASSESSMENT] Question 2: Smart Sandwich Menu (smart_sandwich.py) You are tasked with making the interactive menu from the previous question smarter!
- Extend your answer to the previous question to not only search for a complete string match but search within each item to see if the ingredient is present.
- For example, a search for “Tuna” should return “Tuna Mayo”, “Tuna Sweetcorn” and any other sandwich with tuna in its name.
- Make the search ignore uppercase and lowercase letters (read about Python’s case functions lower() and upper() here: https://www.geeksforgeeks.org/isupper-islower-lower-upper-python-applications/)
- See this week’s hint (above) for a pointer on how to achieve this.