166k views
14 votes
Write the line of Python code that calculates and prints the answer to the following arithmetic expressions.

a. 5 to the 3th power
b. The sum of 4 and 6 multiplied by the quotient of 34 and 5 using floating point arithmetic.

1 Answer

5 votes

Answer:

Step-by-step explanation:

If the chosen programming language for this is Python and you only want the code to calculate the expression and print it then these are the following codes

a. print(5**3)

b. print((4+6) * (34 / 5))

Each one of these lines of code will calculate the arithmetic expressions and print the answer to the screen.