Question: How do I write a function that is named whatAmI(): and will return positive integer values as integer and any other inputs as unidentified object.
How do I write a function that is named whatAmI(): and will return positive integer values as "integer" and any other inputs as "unidentified object".
Ex: whatAmI(4) would return "integer"
whatAmI(-5) would return "unidentified object"
whatAmI(hello) would return "unidentified object"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
