/Sandwich-Menu

July 2022 Computing programming course by Teesside University

Primary LanguagePython

July 2022 Computing programming course by Teesside University

Worksheet 4: File I/O

[ASSESSMENT] Question 1: Sandwich Menu (sandwich.py)
Write an interactive sandwich menu for a restaurant.
1.	First, in Notepad, create a file that contains the names of different types of sandwiches, one per line (e.g. “Tuna Mayo”). Call this file menu.txt.
2.	Write a program that asks the user for the name of a sandwich, then politely tells them whether or not there is a sandwich with that name in menu.txt.