Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

follow directions and add the two lines for this python. Exercise 3 1 ####This code is partially written for you, you need to add two

follow directions and add the two lines for this python.
image text in transcribed
Exercise 3 1 ####This code is partially written for you, you need to add two lines only: ##This program should do the following: ##1. Ask the user to enter a number and save it in userNum. ##2. Convert the value of userNum to 1, only if it is negative. ##3. Display user Num. user Num = int(input("enter a number:")) #Your solution goes here print(userNum) ##sample run 1 ##enter a number: 0 ##0 ## ##sample run 2 ##enter a number: 7 ##7 ## ##sample run 3 ##enter a number: -9 ##1

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_2

Step: 3

blur-text-image_3

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

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

1844804526, 978-1844804528

More Books

Students also viewed these Databases questions

Question

=+what kinds of policies and practices should be developed?

Answered: 1 week ago

Question

=+ Of the HR issues mentioned in the case,

Answered: 1 week ago