Yes, on your cloud. you should have an email
Answer:
The line of code that should be placed is
while line:
The entire code should be as follows:
- infile = open("test.txt", "r")
- outfile = open("copy.txt", "w")
- line = infile.readline()
- while line:
- outfile.write(line)
- line = infile.readline()
- infile.close()
- outfile.close()
Explanation:
The Python built-in function <em>readline() </em>will read one line of text from <em>test.txt</em> per time. Hence, the code in Line 3 will only read the first line of text from <em>test.txt</em>.
To enable our program to read all the lines and copy to <em>copy.txt</em>, we can create a <em>while </em>loop (Line 5) to repeatedly copy the current read line to <em>copy.txt </em>and proceed to read the next line of text from<em> test.txt </em>(Line 6 -7).
"while line" in Line 5 means while the current line is not empty which denotes a condition of True, the codes in Line 6-7 will just keep running to read and copy the text until it reaches the end of file.
I believe you have to install locate with "sudo apt-get install locate" and type "locate 'filename'"
The answer to your question is,
True.
-Mabel <3
A communication over a distance by cable, telegraph, or broadcasting.