For i in range(2, 10):
print 1.0 / i
Answer:
NO THANKS FOR THAT I WILL NOT JOIN
Answer:
Operating system is the layer which manages the virtual and logical availability for hardware and software. Addressing is one the most important task for operating system.
Operating system address binding occurred in many different forms and it is mapped in physical memory address. Basically, it occurred in many different stages like:
- Compile time: During the compile time, a program reside in its physical memory and the code is generated with the help of compiler. Address have identical logical and physical address during compile time.
- Execution time: During the execution time, if a program are moving in the memory then, binding are delayed until its execution time. Address have different physical and logical address.
- Load tome: Load time occurred when the operating system are in its executable form and if the program is in its location then, it will be loaded at compile time.
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.
No, this website is not for study groups. It's more of a 'question and answer' website. There is no actual communication on one certain subject. Although I do know a few websites that have worked really well for me,where you can create and participate in study groups;
-studyblue
- studyhall
- getstudyroom
all of these are safe websites that are used by wide variety of students, therefore i'm sure you can find plenty of people interested in learning the same things as you!