Answer:
behavior that is good for everyone
following the rules
behaving in a way that would be easy to defend
Explanation:
The answer is D
Explanation: none
Answer:
nums = []
while True:
in = input()
if in:
nums.append(in)
else:
break
if nums:
avg = sum(nums) / len(nums)
for i in range(len(nums)):
if nums[i] == avg:
print(f"index: {i+1}")
print(nums[i])
else:
print(-1) # if there aren't any values in nums
Explanation:
Assuming that you are coding in Python 3x. The last 'else' statement is an edge case that you might want to consider, I don't know what you want to put there, but I'm just going to leave it as -1.
Answer:
Answer of the given question is :
I/O-bound
programs would not require much CPU usage, having short CPU bursts.
CPU-bound programs require large CPU bursts. CPU-bound processes do not
have to worry about starvation because I/O bound programs finish running
quickly allowing CPU-bound programs to use the CPU often.
Explanation:
I/O-bound
is a thread generally has a tight latency that needs a compare to computer bond thread on the windows workload.
When a mouse click then it response ASAP as compared to batch job which is running in the background.
If the outcome is slower, then the user switch the operating systems and server workload does not care about UI