Answer:
automotive engine cylinder heads can be made of cast iron or aluminum
Answer: the following memories would NOT be an example of long-term memory are the letter a) and c)
<em> -acknowledging that you just sat down </em>
-recollecting what you had for breakfast an hour ago
Explanation:
as the Long-term memory, also called inactive memory or secondary memory, is a type of memory that stores memories for a period of time greater than five o six months
Answer:
a person who creates a computer virus is a programmer
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.