Answer:
import numpy as np
word = input("Enter a word: ")
acc = []
with open("Downloads/record-collection.txt", "r") as file:
lines = file.readlines()
for line in lines:
if word in line:
line = line.strip()
acc.append(int(line[0]))
if np.mean(acc) >= 2:
print(f"The word {word} is a positive word")
print(f"{word} appeared {len(acc)} times")
print(f"the review of the word {word} is {round(np.mean(acc), 2)}")
else:
print(f"the word {word} is a negative word with review\
{round(np.mean(acc), 2)}")
Explanation:
The python program gets the text from the review file, using the user input word to get the definition of reviews based on the word, whether positive or negative.
The program uses the 'with' keyword to open the file and created the acc variable to hold the reviews gotten. The mean of the acc is calculated with the numpy mean method and if the mean is equal to or greater than 2 it is a positive word, else negative.
1. <u>Comments</u> notes that can be attached to cells to add additional information that is not printed on the worksheet network drive.
2. <u>Footer</u> text and/or graphics that print at the bottom of each page headers.
3. <u>Headers</u> text and/or graphics that print at the top of each page rows.
4. <u>Margins</u> the white space left around the edges of the paper when a worksheet is printed comments.
5. <u>Network drive</u> location at a workplace for storing computer files footer.
6. <u>Rows</u> go across (horizontal) margins.
7. <u>Template</u> a file format used to create new files that contain the same data as the template.
<u>Explanation:</u>
On the off chance that you need to add a header or footer to all sheets, select each sheet by right-clicking one of the sheet tabs at the base of the Excel screen and clicking "Select All Sheets" in the spring up menu. It's genuinely basic to put an Excel header on all pages of all worksheets in your record.
A header is a line of content that shows up at the highest point of each page of a printed worksheet. You can change the direction of a worksheet, which is the situation of the substance with the goal that it prints either vertically or on a level plane on a page.
Answer:
b
Explanation:
they say this on the quiz but because of the irrationality DNA has