<h3><u>
Answer:</u></h3>
# Using the input function
# Prompt the user to input some number
# Convert the input to a float - this will cater for both floating
# numbers and integers
# Store the result in a variable called my_number
my_number = float(input('Please enter some number '))
#Create a variable named calculation which equals my_number plus 9
calculation = my_number + 9
#Multiply calculation by 2
calculation *= 2
#Subtract 4 from calculation
calculation -= 4
#Divide calculation by 2
calculation /= 2
#Subtract my_number from calculation
calculation -= my_number
#Print calculation
print('calculation = ' + str(calculation))
<h2><u>Sample Output</u></h2>
>> Please enter some number 8
calculation = 7.0
<h2><u>
Explanation:</u></h2>
The above program has been written in Python and it contains comments explaining each line of the code. Please go through the comments. A sample output has also been provided.