Answer: Storage
Explanation:
Storage means means saving data in computer memory. Memory refers to the location which is meant for short-term data, while storage is the part of the computer system that allows an individual to store and also access data on long-term basis.
It should be noted that typically, storage usually comes in form of a hard drive or a solid-state drive.
I don’t know but i hope someone gives u the answer
Answer:
def student_minmax(filename):
"""
Description: Reads student names and finds min and max score
Input: Name of the file that has the student data
Output: Dictionary with name as key and value is a list with min and max values
"""
# Dictionary that holds the results
studentDict = {}
# Opening and reading file
with open(filename, "r") as fp:
# Reading data line by line
for line in fp:
# Stripping new line
line = line.strip()
# Splitting into fields
fields = line.split(' ')
# Getting name and scores
name = fields[0]
scores = []
scoresStr = fields[1:]
# Converting to integer
for score in scoresStr:
scores.append(int(score))
# Storing in dictionary
studentDict[name] = []
studentDict[name].append(min(scores))
studentDict[name].append(max(scores))
# Returning dictionary
return studentDict
# Testing function
resDict = student_minmax("d:\\Python\\studentMarks.txt")
# Printing dict
print(resDict)
Explanation:
Answer:
negotiation
Explanation:
negotiation means to meet with someone and try to find a solution that makes both of you happy
Answer:
The solution code is written in Python 3
- total = 0
- count = 0
- neg = 0
- pos = 0
-
- num = int(input("Enter an integer: "))
-
- while(num != 0):
- total += num
- count += 1
-
- if(num < 0):
- neg += 1
- else:
- pos += 1
-
- num = int(input("Enter an integer: "))
-
-
- print("The number of positives: " + str(pos))
- print("The number of negatives: " + str(neg))
- print("The total is " + str(total))
- print("The average is " + str(total/count))
Explanation:
Firstly, we create four variables, <em>total</em> , <em>count,</em> <em>neg</em> and <em>pos </em>(Line 1- 4). This is to prepare the variable to hold the value of summation of input integer (<em>total</em>), total number of input number (<em>count</em>), total negatives (<em>neg</em>) and total positives (<em>pos</em>).
Next, we prompt user for the first integer (Line 6).
Create a sentinel while loop and set the condition so long as the current input number, <em>num</em> is not equal to zero. the program will just keep adding the current <em>num</em> to total (Line 9) and increment the count by one (Line 10).
if <em>num</em> smaller than zero, increment the <em>neg</em> by one (Line 13) else increment the <em>pos </em>by one (Line 15). This is to track the total number of positives and negatives.
Finally, we can display all the required output (Line 20 - 23) using the Python built-in function <em>print()</em> when user enter 0 to terminate the while loop. The output shall be as follows:
The number of positives: 3
The number of negatives: 1
The total is 5
The average is 1.25