Question: Must be done in python and using linux mint 1) Write a program that asks the user for a number. The program should only accept

Must be done in python and using linux mint

Must be done in python and using linux mint 1) Write aprogram that asks the user for a number. The program should only

1) Write a program that asks the user for a number. The program should only accept positive values from the user and reject any negative values entered. The program should keep on asking the user for input as long as the user keeps entering a negative value, and the moment the user enters a positive value it should display a success message as shown in the example below and quit execution. Here is an example output Enter a number -2 Sorry, input rejected Enter a number> 3 Congratulations, input accepted 2) Write a program that asks the user to enter a number and accepts the input if and only if the number is within the range (-100, 100) inclusive. The program should keep on asking the user for input as long as the user keeps entering a value not within the range. The moment user enters a value within the range it should display a success message as shown in the example below and quit execution

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!