Question: python TV CHANNEL Write a program that searches for a television channel. Your program should: 1. Create and write the tv channel into a text
TV CHANNEL Write a program that searches for a television channel. Your program should: 1. Create and write the tv channel into a text file named "channel.tbt" as shown in figure 1 2. Create a function that would be capable of searching for the channel as in figure 1 by using user enter value. User to enter any of the following strings. TV1, TV2, TV3, NTV7, or TV8. 3. However, if a user enters a wrong string, then a message 'Wrong Channel' will be displayed 4. Create a function named TVChannel that reads the contents of the file and displays the list to the screen. Requirements Your solution must incorporate the following: - Amy type of selection - Any type of looping - At least Two (z) function (programmer defined function) - List processing - Write into tent file - Read from teat file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
