Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started