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

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!