I would think it would be A.
Answer:
None of the options is correct.
Explanation:
One of the simplest statements that you can write in Python is a print statement, which causes a message to be displayed on the screen. For example, the following statement causes the message Python programming is fun! to be displayed:
print 'Python programming is fun!'
Notice that after the word print, the Python programming is fun! was written inside a set of single-quote marks. The quote marks are necessary, but they will not be displayed. They simply mark the beginning and the end of the text that we wish to display.
Here is an example of how you would type this print statement at the interpreter’s
prompt:
>>> print 'Python programming is fun!'
After typing the statement you press the Enter key and the Python interpreter executes the statement, as shown here:
>>> print 'Python programming is fun!'
Python programming is fun!
>>>
Thus, the correct way to write the codes in the question is:
print 'Programming is fun'
print 'Python'
print 'Computer Science'
I have annotated the errors in the picture.
<em />
<em>Hope this helps :)</em>
Answer:
<em>The programming language is not stated;</em>
<em>However, the program written in Python is as follows</em>
def solveEquation(x,y,z):
result = z - y + 2 * x
print(result)
x = float(input("x = "))
y = float(input("y = "))
z = float(input("z = "))
print(solveEquation(x,y,z))
Explanation:
This line defines the function solveEquation
def solveEquation(x,y,z):
This line calculates the expression in the question
result = z - y + 2 * x
This line returns the result of the above expression
print(result)
The next three lines prompts user for x, y and z
x = float(input("x = "))
y = float(input("y = "))
z = float(input("z = "))
This line prints the result of the expression
print(solveEquation(x,y,z))
get organized because of the beging when she start she will want ot be nice and fresh on everything