Answer:
def is_list_even(list):
return all((x % 2) == 0 for x in list)
def is_list_odd(list):
return all((x % 2) == 1 for x in list)
numberList = []
n = int(input("Enter number of elements : "))
for i in range(0, n):
numberList.append(int(input()))
if is_list_even(numberList):
print("all even")
elif is_list_odd(numberList):
print("all odd")
else:
print("not even or odd")
Answer:
1. They both have arrows at the beginning and end of their scroll.
2. They are both used for extending the users view to rangers that are not currently present on the screen.
3. They are both located at the far right bottom of an open program in a computer screen.
4.They can be used in thesame way by dragging the scroll bar or clicking on the arrows on either side of the scroll bar.
Explanation:
Note that:
The vertical scroll bar is the one which extends from top to bottom.
While the horizontal scroll bar extends from left to right.
Answer:
The probability that all five are still good two years later is 0.498.
Explanation:
Let <em>X</em> = number of internet sites that vanishes within 2 years.
The probability of an internet site vanishing within 2 years is: P (X) = <em>p</em> = 0.13.
A paper consists of <em>n</em> = 5 internet references.
The random variable <em>X</em> follows a Binomial distribution with parameters <em>n</em> = 5 and <em>p</em> = 0.13.
The probability mass function of a Binomial distribution is:
Compute the probability of <em>X</em> = 0 as follows:
Thus, the probability that all five are still good two years later is 0.498.