Answer:
(c) A list of words
Explanation:
<em>First let's format the code properly</em>
fin = open('words.txt')
for line in fin:
word = line.strip()
print(word)
<em>Second, let's explain each line of the code</em>
Line 1:
The open() function is a built-in function that takes in, as argument, the name of a file, and returns a file object that can be used to read the file.
In this case, the name of the file is <em>words.txt. </em>Therefore, the variable <em>fin </em>is a file object which contains the content of the file - <em>words.txt</em>
Line 2:
The <em>for </em>loop is used to read in each line of the content of the file object (fin).
Line 3:
Each line of the contents is stripped to remove any trailing and leading white spaces by calling on the <em>strip()</em> function. The result of the strip is stored in the variable <em>word.</em>
Line 4:
The content of word at each of the cycles of the loop is printed to the console.
Therefore, the overall output of the program is a list of words where each word represents a line in the target file (words.txt)
Answer:
Network
Explanation:
When you have devices connected together to pass, share and exchange information; this connection is regarded as network.
Take for instance. you need to get a file from your friend's mobile phone; when you connect your phone to your friend's phone via Bluetooth, Xender or via whatever convenient means of connection; that is a network.
Another instance is when you connect multiple systems in a CBT examination; this connection is also regarded as a network.
I think the answer is hatch pattern.