Question: Write a script that asks the user to input a number. If the value the user enters is a negative value, call the pre-defined function
Write a script that asks the user to input a number. If the value the user enters is a negative value, call the pre-defined function neg_value which consumes no arguments and returns no values. If the user enters a positive value, call the pre-defined function pos_value which consumes no arguments and returns no values. If the user enters a zero, display the message "Invalid Value".
Python language!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
