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

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!