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:

in python please: Write a function, called intSign, that receives an integer

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

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!