How to use the assert command to say that P is integer type, and if not, should return an error message in Python

0

How to use the assert command to say that P is integer type, and if not, should return an error message in Python.

I wrote this way more did not work out

assert (int (P)), "The number P is not an integer."

    
asked by anonymous 14.04.2018 / 22:01

0 answers