Answer:
The operation of 6*x only executes if x is greater or equal to 0, since x=-10 and -10 is less than 0, the operation does not execute. For this reason, the value of y using this code is None.
Explanation:
In python a function is defined with the syntaxis:
def function(x):
the operation to execute (x)
value to return
In this case, the function is foo and the parameter is x:
def foo(x):
if x>= 0:
return 6*x
The code starts by assigning a value to x. Then, the code asks if the value of x is grater or equal to 0, if this condition is meet, then the code returns the value of 6 times x, if not, then the code does not return a value. In this case, x is -10 and this value is not grater or equal to 0. Given that the condition is not met, then the code stops executing and the value of y is none.
Answer: A: A language that directs a computer to perform tasks and carry out
functions
Explanation: I'm a programmer, and coder, this is the best answer from the given choices
=A2*D2
The above formula will allow calculation of monthly cost of the first raw material.This is done by Multiplying the contents of cell A2 (Column A, Row 2) and cell D2 (Column D, Row 2). Here Cell A2 contains cost of the first raw material and Cell D2 contains number of units of the raw material produced each month. After finding the monthly cost of the first raw material in this way, the monthly cost of other raw materials can simply be calculated by dragging down the formula to apply to the rows below.
Answer:
Because someone was hittting the space bar in the message instead of typing letters and numbers
Explanation:
Because they were bored or it was a glitch