Question: in python please: Write a function, called intSign, that receives an integer or a float as input and returns a string based on the sign.
in python please:

Write a function, called intSign, that receives an integer or a float as input and returns a string based on the sign. If the value is positive, return the string "positive" If the value is negative, return the string "negative" If the value is zero, return the string "zero" ### ### # write your intSign(x) function here ##### == print("Testing intSign()...", end="") assert(intSign (42) "positive") assert(intsign(-20) "negative") assert(intSign(0.5) "positive") assert(intsign(-0.1) "negative"). assert(intSign (0) "zero") print(".. done!") == ==
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
