Ask Question
3 June, 12:46

The kitchen in any café is a noisy place. To make sure the orders which you have carefully written down on your notepad make it to the chef, you'll need to shout them! Write a program to read in lines of input from the file called orders. txt, and print out each line in uppercase.

+2
Answers (1)
  1. 3 June, 13:47
    0
    file_name = 'orders. txt'

    file_obj = open (file_name, 'r')

    lines = file_obj. read ()

    print (lines. upper (), end = '')

    Explanation:

    Define the name of the file. Use the built-in open function to open the file in read mode. Use the built-in read function to read the file and assign this to lines variable. Finally display the lines by converting them to capital alphabets by using the built-in upper () function.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “The kitchen in any café is a noisy place. To make sure the orders which you have carefully written down on your notepad make it to the ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers