Question: Python Create 3 variables named: userName result userNum Prompt the user for their name and to enter any number. Complete the following processes on separate
Python
Create 3 variables named:
userName
result
userNum
Prompt the user for their name and to enter any number.
Complete the following processes on separate lines or for a challenge, write the equation on one line, storing the value in the result variable. (Using your knowledge of order of precedence.)
Add 3
Double the result.
Subtract 4
Divide the number in half
Subtract Your Original Number
Print the result to the screen.
Run the code to display your output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
