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.
16235 to the nearest ten thousand would be 20,000.
Hope this helps :)
~ Davinia.
Answer:
D. systems thinking ability
Explanation: Cognitive skills are skills required by individuals to process information without showing any mental related issues. Cognitive skills or abilities are closely associated with learning.
Routine cognitive skills are cognitive skills which are regularly applied in processing information mentally.
Non routine cognitive skills are skills that are not regularly utilised in the daily life such as SYSTEM THINKING ABILITY.
Answer:
D
Explanation:
Because a mobile phone would allow you to tilt it in any direction.
When you are creating a website, you will usually need to add details to the website. If you're coding a website as HTML, you always have to make sure your code is correct. If one thing is a mess up, you have to start the whole thing all over again.