Question: Python # Variables my_int_1 = 10 my_int_2 = 3 my_float_1 = 0.1 my_float_2 = 25.345 # Using the variables, construct a print() that contains the

Python

# Variables my_int_1 = 10 my_int_2 = 3 my_float_1 = 0.1 my_float_2 = 25.345

# Using the variables, construct a print() that contains the appropriate math equation # After executing your code, add your answers to the comments as indicated below

#1 exponent - show the results of my_int_1 raised to the power of my_int_2 print(my_int_1

#2 addition - show the results of my_int_1 plus my_int_2 print( # What is the resulting data type of this operation? # Answer:

#3 addition - show the results of my_float_1 plus my_float_2 print( # What is the resulting data type of this operation? # Answer:

#4 addition - show the results of my_int_1 plus my_float_2 print( # What is the resulting data type of this operation? # Answer:

#5 subtraction, multiplication - show the results of my_int_1 minus my_int_2 times my_float_1 print( # Which operator is excuted first? Why? # Answer:

#6 division - show the results of my_int_1 divided by my_int_2 using integer division print( # Explain your results? # Answer:

#7 division - show the results of my_int_1 divided by my_int_2 using floating point division print( # Explain your results? # Answer:

#8 division - show the results of my_int_1 divided by my_int_2 using modulus division print( # Explain your results? # Answer:

#9 division - show the results of my_float_2 divided by my_float_1 using integer division print( # Explain your results? # Answer:

#10 division - show the results of my_float_2 divided by my_float_1 using floating point division print( # Explain your results? # Answer:

#11 division - show the results of my_float_2 divided by my_float_1 using modulus division print( # Explain your results? # Answer:

#12 division - show the results of my_int_2 divided by my_float_1 using integer division print( # Explain your results? # Answer:

#13 division - show the results of my_int_2 divided by my_float_1 using floating division print( # What is the resulting data type # Answer:

#14 division - show the results of my_int_2 divided by my_float_1 using modulus division print( # Explain your results? # Answer:

#15 Correct the following code so it produces the correct results

midtermm = 88 final = 92 average = midtermm + final / 2 print("Student's grade:", average)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!