Question: Winter 2020 C! 18 points) Python. Write a Python function write file that accepts sequence of lines as input and writes lines into a file

 Winter 2020 C! 18 points) Python. Write a Python function write

Winter 2020 C! 18 points) Python. Write a Python function write file that accepts sequence of lines as input and writes lines into a file "data.txt" after making all characters in the sentence capitalized using unction. Then your program should print the longest line with the length on the standard output For example, suppose the following input is supplied to the program: Hello world Practice makes perfect The data written into data.txt is: HELLO WORLD PRACTICE MAKES PERFECT Then, the output should be: longest line = 22 characters PRACTICE MAKES PERFECT

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!