Answered step by step
Verified Expert Solution
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.
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
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