Answer:
A. for an if-else statement in python, if the condition is false, The else statement is executed.
B. if the condition of the if-statement is true, the indented block of code is executed.
Explanation:
The if-statement is a conditional statement in programming for decision making. It is also known as branching as it makes decisions based on two paths. It comes with another keyword called 'else'.
The If-else statement makes a decision based on the output of a condition which is defined in the if-statement. If the condition is met, the code block just after the if-statement is executed, but the else-statement block is executed if otherwise.
A PS4 because there the most popular game out right now
Answer:
a=[23,6,78,36,3,250,127,210,-5]
i = len(a) # calculate length
j = min(a) # calculate minimun
k = sum(a) # calculate sum
l= sum(a)/len(a) # calculate mean
print(i)
print(j)
print(k)
print(l)
z = 0.0
i=0
x=[23,6,78,36,3,250,127,210,-5]
y = int(l)
while x[i] < y:
z= int(x[i]/y)
print(z)
x[i] = x[i] - y
z=z+1
i=i+1
Explanation:
So above we have calculated Count, minimum, sum and mean/average. Also we did a simple division and printed quotient.
The odd values in a list can be calculated by knowing the first and last number, whereas even numbers can be divided by two and the remainder is zero (0).
<h3>What are even numbers and odd numbers?</h3>
The even numbers can be found in a list because they are divisible by two and the remainder of this equation is always zero (0).
Conversely, odd numbers are those that cannot be divided exactly into exact entire numbers (e.g., 3, 5, etc).
The odd numbers in a list can be calculated by the equation ON (odd numbers): n/2 × [f + g], where 'f' is the first number and 'g' is the last number.
In conclusion, the odd values in a list can be calculated by knowing the first and last number, whereas even numbers can be divided by two and the remainder is 0.
Learn more about odd numbers here:
brainly.com/question/2263958
#SPJ1