Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions

Question

1. Let a, b R, a Answered: 1 week ago

Answered: 1 week ago

Question

Th ey have to wait a long time for an appointment?

Answered: 1 week ago