Question: Python please 1. Create a text file inputfile.txt with course information as follows: Course no. Days Time Room CIS40 MW 9:30am-11:20am AT204 CIS41a TTh 9:30am-11:20am
Python please
1. Create a text file inputfile.txt with course information as follows:
Course no. Days Time Room
CIS40 MW 9:30am-11:20am AT204
CIS41a TTh 9:30am-11:20am AT204
CIS4 TTh 11:30am-1:20pm AT205
CIS22a MTWTh 8:30am-9:20am AT206
2. Open the file and read the contents.
3. Ask the user to enter a course number to lookup course information for.
4. Print the corresponding line for the course and also write it into a file called output.txt. If the user provided course number information is not found, print information not found.
Sample output is:
Enter the course number you want to lookup: CIS40
CIS40 information is: CIS40 MW 9:30am-11:20am AT204
or
Information on CISxx was not found.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
