I am using the following code. Everything works except for the part where I printing “Cat” and the program should give me an Output of “Not Possible” but it is giving an error.
if(type(x)== int() or type(x)==float()):
Thanks for reaching out.
Can you please support your question with the code you’ve executed, as well as with a screenshot containing the entire error message? Only then will we be able to provide a specific answer. Thank you.
Currently, I ran your code and then executed the function with an argument of “Cat”, and did indeed obtain “Not Possible” as an answer.
Looking forward to your reply.
Hope this helps.
Thanks Martin! It works. I don’t know why it wasn’t working at that time
Hi Archisman! Great! Thank you for letting us know! Good luck and please feel free to post another question should you encounter any difficulties. Thank you.