Question
Using PYTHON and files 1-write a function fcopy() that takes an input two files names as a string and copies the content of the first
Using PYTHON and files 1-write a function fcopy() that takes an input two files names as a string and copies the content of the first file into the second 2-write a function stats() that takes one input argument : the name of a text file. the function should print on the screen , the number of lines, words, and characters in the file and the function should open the file only once . 3-write a function named repeatWords() that takes two paramters(strings): the name of the input file that exists before repeatWords() is called and the name of the output file that repeatWords() creates for each input file it should write the output file of all the words that appear more than once in that line and they should be lowercase, each repeated word should be written to the corresponding line of the output file only once regardless of the number of times a word is rpeated
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started