Question: Pyhon o Requests the user to enter a number between 1 and 10 o Creates an array containing the numbers 19, 85, and 2. o
Pyhon
o Requests the user to enter a number between 1 and 10
o Creates an array containing the numbers 19, 85, and 2.
o Loops three times:
the first loop will multiply the number entered by the first element of the array (19).
the second loop will subtract the second element of the array (85) from the result of the first calculation.
the third loop will divide the result of the second calculation by the third element of the array (2).
o If the result is greater than the number originally entered, then display the message "Your result is greater than
X" - with "X" being the number originally entered.
o If the result is less than the number originally entered, then display the message "Your result is less than X" - with
"X" being the number originally entered.
o If the result is equal to the number originally entered, then display the message "Your result is equal to X" - with
"X" being the number originally entered.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
